add test on metz data (#42169)
This commit is contained in:
parent
ea908cde22
commit
3c5d056fa3
File diff suppressed because it is too large
Load Diff
|
@ -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
|
Loading…
Reference in New Issue