diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2017-07-24 00:00:35 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2017-07-24 00:00:35 +1000 |
| commit | 7ebc29ff3406feb973eb9ad81863b33a918047c3 (patch) | |
| tree | 5260d14656d8026ef4a505b3792e44b5daab818d /tests/test_util.py | |
| parent | b678a60a239cf08d7eb30906aa28c401c80e3dba (diff) | |
tests: Remove shitty tests
Diffstat (limited to 'tests/test_util.py')
| -rwxr-xr-x | tests/test_util.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/test_util.py b/tests/test_util.py index 051c365..b1fa704 100755 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -1,10 +1,7 @@ """Test util functions.""" import unittest -import unittest.mock -import io import os import pathlib -import time from pywal import util @@ -84,27 +81,6 @@ class TestUtil(unittest.TestCase): result = util.hex_to_xrgba("#98AEC2") self.assertEqual(result, "98/ae/c2/ff") - def test_disown(self): - """> Test disown command.""" - test_file = pathlib.Path("/tmp/wal-test-disown") - util.disown("touch", test_file) - - # We won't know when 'disown' will finish so we - # sleep here. - time.sleep(10) - - result = test_file.is_file() - self.assertTrue(result) - os.remove(test_file) - - def test_msg(self): - """> Test displaying a message.""" - # Since this function just prints a message we redirect - # it's output so that we can read it. - with unittest.mock.patch('sys.stdout', new=io.StringIO()) as fake_out: - util.msg("test", True) - self.assertEqual(fake_out.getvalue().strip(), "test") - if __name__ == "__main__": unittest.main() |
