base_adresse: add missing asserts in streets tests (#11497)

This commit is contained in:
Valentin Deniaud 2019-12-04 15:07:39 +01:00
parent 5c283e0277
commit bccef54753
1 changed files with 2 additions and 2 deletions

View File

@ -211,7 +211,7 @@ def test_base_adresse_command_update(mocked_get, db, base_adresse):
assert street.citycode == '73001'
# check a new call downloads again
call_command('cron', 'daily')
mocked_get.call_count == 2
assert mocked_get.call_count == 2
@mock.patch('passerelle.utils.Request.get')
@ -224,7 +224,7 @@ def test_base_adresse_command_hourly_update(mocked_get, db, base_adresse):
assert StreetModel.objects.all().count() == 3
# check a second call doesn't download anything
call_command('cron', 'hourly')
mocked_get.call_count == 1
assert mocked_get.call_count == 1
@mock.patch('passerelle.utils.Request.get')