Skip to content

Commit

Permalink
increase coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
James McKinney committed Oct 13, 2014
1 parent d92b5a4 commit 1a9c206
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions boundaries/tests/test_loadshapefiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,18 @@ def fixture(basename):
return os.path.join(os.path.dirname(__file__), 'fixtures', basename)


class LoadShapefilesTestCase(TestCase):
class LoadShapefilesTestCase(TestCase): # @todo This only ensures there's no gross error. Need more tests.

def test_command(self): # @todo This only ensures there's no gross error. Need more tests.
def test_without_arguments(self):
boundaries.registry = {}
boundaries._basepath = '.'
try:
call_command('loadshapefiles', data_dir='boundaries/tests/fixtures')
except Exception as e:
if e.errno != os.errno.ENOENT: # ogr2ogr won't be available on Travis
self.fail('Exception %s raised: %s %s' % (type(e).__name__, e, traceback.format_exc()))

def test_with_arguments(self):
boundaries.registry = {}
boundaries._basepath = '.'
try:
Expand Down

0 comments on commit 1a9c206

Please sign in to comment.