summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2017-07-22 23:57:18 +1000
committerDylan Araps <dylan.araps@gmail.com>2017-07-22 23:57:18 +1000
commitbd5611e35cba2cfa0a57f3f854ed157638da3c95 (patch)
tree981bb528e071c0c8e3b040d9e3c2dc736ac7bc32 /tests
parent7566104c85f0f0f277d917ccb7a14682b5d3630f (diff)
tests: Fix tests
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test_template.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_template.py b/tests/test_template.py
index f1b7dc5..14b1124 100755
--- a/tests/test_template.py
+++ b/tests/test_template.py
@@ -21,10 +21,10 @@ class TestExportColors(unittest.TestCase):
"""> Test substitutions in template file."""
template.export_all(COLORS, OUTPUT_DIR)
- result = pathlib.Path("/tmp/colors.sh").is_file()
+ result = pathlib.Path("/tmp/wal/colors.sh").is_file()
self.assertTrue(result)
- content = pathlib.Path("/tmp/colors.sh").read_text()
+ content = pathlib.Path("/tmp/wal/colors.sh").read_text()
content = content.split("\n")[6]
self.assertEqual(content, "foreground='#F5F1F4'")
@@ -32,10 +32,10 @@ class TestExportColors(unittest.TestCase):
"""> Test substitutions in template file (css)."""
template.export(COLORS, "colors.css", OUTPUT_DIR)
- result = pathlib.Path("/tmp/colors.css").is_file()
+ result = pathlib.Path("/tmp/wal/colors.css").is_file()
self.assertTrue(result)
- content = pathlib.Path("/tmp/colors.css").read_text()
+ content = pathlib.Path("/tmp/wal/colors.css").read_text()
content = content.split("\n")[6]
self.assertEqual(content, " --background: #1F211E;")