Skip to content

Commit

Permalink
Add test count touristic event is equal to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
LePetitTim committed Dec 31, 2018
1 parent d55c036 commit aa8926e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions geotrek/tourism/tests/test_parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def mocked_json():
mocked.return_value.status_code = 200
mocked.return_value.json = mocked_json
FileType.objects.create(type=u"Photographie")
self.assertEqual(TouristicEvent.objects.count(), 0)
call_command('import', 'geotrek.tourism.parsers.TouristicEventApidaeParser', verbosity=0)
self.assertEqual(TouristicEvent.objects.count(), 1)
event = TouristicEvent.objects.get()
Expand Down

0 comments on commit aa8926e

Please sign in to comment.