summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2017-06-30 09:28:23 +1000
committerDylan Araps <dylan.araps@gmail.com>2017-06-30 09:28:23 +1000
commit6ca3fa2763c15feccf7902dbb9dd95a3e6ddb4c3 (patch)
tree20c51ab8f085b822fcc304407a24fe7d91e5c823 /tests
parentd865a5fd3cb7bc93091564abecc8b2c1aca35d04 (diff)
tests: Fix linting and tests.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test_export_colors.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/test_export_colors.py b/tests/test_export_colors.py
index b458aa5..6097fda 100755
--- a/tests/test_export_colors.py
+++ b/tests/test_export_colors.py
@@ -20,13 +20,16 @@ class TestExportColors(unittest.TestCase):
COLORS["colors"].update(COLORS["special"])
output_dir = pathlib.Path("/tmp")
- export_colors.export_all_templates(COLORS, pathlib.Path("tests/test_files/templates"), output_dir)
+ template_dir = pathlib.Path("tests/test_files/templates")
+ export_colors.export_all_templates(COLORS, template_dir, output_dir)
result = pathlib.Path("/tmp/test_template").is_file()
self.assertTrue(result)
content = pathlib.Path("/tmp/test_template").read_text()
- self.assertEqual(content, '\n'.join(["test1 #3A5130", "test2 #3A5130", "test3 58,81,48", ""]))
+ self.assertEqual(content, '\n'.join(["test1 #3A5130",
+ "test2 #3A5130",
+ "test3 58,81,48", ""]))
if __name__ == "__main__":