Skip to content

Commit

Permalink
expand tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fitnr committed Nov 30, 2017
1 parent 891efda commit 8e52c51
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 8e52c51

Please sign in to comment.