From 8e52c51dcb96e3d4354c1dde0b73cad84a897aa1 Mon Sep 17 00:00:00 2001 From: fitnr Date: Thu, 30 Nov 2017 17:58:28 -0500 Subject: [PATCH] expand tests --- tests/test_cli.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_cli.py b/tests/test_cli.py index d3bbcf6..ab1f977 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -31,6 +31,10 @@ class CliTestCase(unittest.TestCase): dc = 'tests/test_data/tl_2015_11_place.json' css = 'polygon{fill:green}' + def setUp(self): + self.assertTrue(os.path.exists(self.dc)) + self.assertTrue(os.path.exists(self.css)) + self.assertTrue(os.path.exists(self.shp)) def invoke(self, argument): return self.runner.invoke(svgis.cli.main, argument, catch_exceptions=False) @@ -102,6 +106,8 @@ def testDrawProjected(self): self.assertIsNotNone(match) except AssertionError: print(svg) + result = self.invoke(['draw', self.dc]) + print(result.output) raise result = match.groups()[0]