diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2017-07-22 23:50:40 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2017-07-22 23:50:40 +1000 |
| commit | 7566104c85f0f0f277d917ccb7a14682b5d3630f (patch) | |
| tree | 5e4b0eafb243dfc667a634baac6b37b0b1377779 | |
| parent | 676f5325e11cfc12d6080f6cdb27be2e697a88a8 (diff) | |
tests: Add new template test.
| -rwxr-xr-x | tests/test_template.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/tests/test_template.py b/tests/test_template.py index 9b9870d..f1b7dc5 100755 --- a/tests/test_template.py +++ b/tests/test_template.py @@ -8,6 +8,7 @@ from pywal import util # Import colors. COLORS = util.read_file_json("tests/test_files/test_file.json") +COLORS["colors"].update(COLORS["special"]) OUTPUT_DIR = pathlib.Path("/tmp/wal") util.create_dir("/tmp/wal") @@ -18,10 +19,6 @@ class TestExportColors(unittest.TestCase): def test_all_templates(self): """> Test substitutions in template file.""" - # Merge both dicts so we can access their - # values simpler. - COLORS["colors"].update(COLORS["special"]) - template.export_all(COLORS, OUTPUT_DIR) result = pathlib.Path("/tmp/colors.sh").is_file() @@ -33,10 +30,6 @@ class TestExportColors(unittest.TestCase): def test_css_template(self): """> Test substitutions in template file (css).""" - # Merge both dicts so we can access their - # values simpler. - COLORS["colors"].update(COLORS["special"]) - template.export(COLORS, "colors.css", OUTPUT_DIR) result = pathlib.Path("/tmp/colors.css").is_file() |
