add test on metz data (#42169)

This commit is contained in:
Benjamin Dauvergne 2020-04-30 00:08:02 +02:00
parent ea908cde22
commit 3c5d056fa3
2 changed files with 17863 additions and 0 deletions

17849
tests/metz.json Normal file

File diff suppressed because it is too large Load Diff

14
tests/test_metz.py Normal file
View File

@ -0,0 +1,14 @@
import pytest
from django.core.management import call_command
@pytest.fixture
def metz_data(db):
call_command('import_site', 'tests/metz.json')
def test_get_all_slots(db, app, metz_data, freezer):
freezer.move_to('2020-04-29 22:04:00')
response = app.get('/api/agenda/vdmvirtuel-retraitmasque/meetings/un-retrait/datetimes/')
assert len(response.json['data']) == 324