commit e6b9b84a0a98d6e2a688a110515954bd1b90bdb3 Author: juga0 juga@riseup.net Date: Thu Sep 6 17:25:31 2018 +0000
Remove test since function not being used --- tests/unit/util/test_fs.py | 23 ----------------------- 1 file changed, 23 deletions(-)
diff --git a/tests/unit/util/test_fs.py b/tests/unit/util/test_fs.py deleted file mode 100644 index e659d83..0000000 --- a/tests/unit/util/test_fs.py +++ /dev/null @@ -1,23 +0,0 @@ -"""Unit tests for fs module""" -from unittest.mock import patch - -from sbws.util import fs - - -def mock_df_zero(path): - return 0 - - -def mock_df_enough(path): - return 89 - - -@patch('sbws.util.fs.df', mock_df_zero) -def test_is_low_space_true(caplog, conf): - assert fs.is_low_space(conf) is True - assert ' is less than ' in caplog.records[-1].getMessage() - - -@patch('sbws.util.fs.df', mock_df_enough) -def test_is_low_space_false(conf): - assert fs.is_low_space(conf) is False
tor-commits@lists.torproject.org