0002-base_adresse-add-missing-asserts-in-streets-tests-11.patch
tests/test_base_adresse.py | ||
---|---|---|
211 | 211 |
assert street.citycode == '73001' |
212 | 212 |
# check a new call downloads again |
213 | 213 |
call_command('cron', 'daily') |
214 |
mocked_get.call_count == 2 |
|
214 |
assert mocked_get.call_count == 2
|
|
215 | 215 | |
216 | 216 | |
217 | 217 |
@mock.patch('passerelle.utils.Request.get') |
... | ... | |
224 | 224 |
assert StreetModel.objects.all().count() == 3 |
225 | 225 |
# check a second call doesn't download anything |
226 | 226 |
call_command('cron', 'hourly') |
227 |
mocked_get.call_count == 1 |
|
227 |
assert mocked_get.call_count == 1
|
|
228 | 228 | |
229 | 229 | |
230 | 230 |
@mock.patch('passerelle.utils.Request.get') |
231 |
- |