aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Araps <[email protected]>2017-08-15 19:39:14 +1000
committerDylan Araps <[email protected]>2017-08-15 19:39:14 +1000
commitfee68022d353a31ef2171663344874b02aad0272 (patch)
treeaeda305d7dc0c0efb65553c1b24c66a81d0b2d49
parenttemplate: Add font to all templates. (diff)
downloadpywal-fee68022d353a31ef2171663344874b02aad0272.tar.xz
pywal-fee68022d353a31ef2171663344874b02aad0272.zip
tests: Fix tests.
-rwxr-xr-xtests/test_export.py4
-rw-r--r--tests/test_files/test_file.json1
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_export.py b/tests/test_export.py
index 7cb0bb4..a201721 100755
--- a/tests/test_export.py
+++ b/tests/test_export.py
@@ -28,7 +28,7 @@ class TestExportColors(unittest.TestCase):
with open("/tmp/wal/colors.sh") as file:
content = file.read().splitlines()
- self.assertEqual(content[6], "foreground='#F5F1F4'")
+ self.assertEqual(content[7], "foreground='#F5F1F4'")
def test_css_template(self):
"""> Test substitutions in template file (css)."""
@@ -40,7 +40,7 @@ class TestExportColors(unittest.TestCase):
with open("/tmp/wal/test.css") as file:
content = file.read().splitlines()
- self.assertEqual(content[6], " --background: #1F211E;")
+ self.assertEqual(content[7], " --background: #1F211E;")
def test_invalid_template(self):
"""> Test template validation."""
diff --git a/tests/test_files/test_file.json b/tests/test_files/test_file.json
index c555eda..5c390ee 100644
--- a/tests/test_files/test_file.json
+++ b/tests/test_files/test_file.json
@@ -1,5 +1,6 @@
{
"wallpaper": "5.png",
+ "font": "None",
"special": {
"background": "#1F211E",