diff options
| author | Dylan Araps <[email protected]> | 2017-08-10 09:23:50 +1000 |
|---|---|---|
| committer | Dylan Araps <[email protected]> | 2017-08-10 09:23:50 +1000 |
| commit | c61960722d28373a4668814d996a248819e220c0 (patch) | |
| tree | 3b6895d30d82c08ae8ffb7e691d2ecd78d5dafc8 /tests/test_util.py | |
| parent | general: Remove all pathlib usage (diff) | |
| download | pywal-c61960722d28373a4668814d996a248819e220c0.tar.xz pywal-c61960722d28373a4668814d996a248819e220c0.zip | |
general: Remove all pathlib usage
Diffstat (limited to 'tests/test_util.py')
| -rwxr-xr-x | tests/test_util.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/test_util.py b/tests/test_util.py index aae0356..79b6b96 100755 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -1,7 +1,6 @@ """Test util functions.""" import unittest import os -import pathlib from pywal import util @@ -35,16 +34,16 @@ class TestUtil(unittest.TestCase): def test_save_file(self): """> Save colors to a file.""" - tmp_file = pathlib.Path("/tmp/test_file") + tmp_file = "/tmp/test_file" util.save_file("Hello, world", tmp_file) - result = tmp_file.is_file() + result = os.path.isfile(tmp_file) self.assertTrue(result) def test_save_file_json(self): """> Save colors to a file.""" - tmp_file = pathlib.Path("/tmp/test_file.json") + tmp_file = "/tmp/test_file.json" util.save_file_json(COLORS, tmp_file) - result = tmp_file.is_file() + result = os.path.isfile(tmp_file) self.assertTrue(result) def test_create_dir(self): |