summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDylan Araps <dylanaraps@users.noreply.github.com>2018-04-01 13:11:07 +1000
committerGitHub <noreply@github.com>2018-04-01 13:11:07 +1000
commit50de3cf270592d5f047b1550b0bbf35d709d96a8 (patch)
treefdc9cd19b7746a29803e0fb9b28d294da793152b /tests
parentd5f39135b2d054af23c0af8594ee772b2a544669 (diff)
parenteadcb3bfd365aea5a0397262e3b41e5ed78848dd (diff)
Merge pull request #216 from dylanaraps/logging
general: Added logging.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test_export.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/test_export.py b/tests/test_export.py
index 4dcc6be..9a5efa9 100755
--- a/tests/test_export.py
+++ b/tests/test_export.py
@@ -1,7 +1,6 @@
"""Test export functions."""
import unittest
import unittest.mock
-import io
import shutil
import os
@@ -53,20 +52,5 @@ class TestExportColors(unittest.TestCase):
self.is_file_contents(tmp_file, " --background: #1F211E;")
-class TestInvalidExport(unittest.TestCase):
- """Test export function error handling."""
-
- def test_invalid_template(self):
- """> Test template validation."""
- error_msg = "warning: template 'dummy' doesn't exist."
- tmp_file = os.path.join(TMP_DIR, "test.css")
-
- # Since this function prints a message on fail we redirect
- # it's output so that we can read it.
- with unittest.mock.patch('sys.stdout', new=io.StringIO()) as fake_out:
- export.color(COLORS, "dummy", tmp_file)
- self.assertEqual(fake_out.getvalue().strip(), error_msg)
-
-
if __name__ == "__main__":
unittest.main()