tests: update to match behaviour change from #40054
This commit is contained in:
parent
5bf278e014
commit
b928e96166
|
@ -51,13 +51,14 @@ def test_mairie_openinghoursspecification_period_valid():
|
|||
|
||||
|
||||
@pytest.mark.freeze_time("2020-03-05 15:59:00")
|
||||
def test_mairie_openinghoursspecification_period_invalid():
|
||||
"""Test valid periods of openinghoursspecification timetables"""
|
||||
def test_mairie_openinghoursspecification_period_all_closed():
|
||||
# display known format but no opening hours as all closed
|
||||
for x in GEOJSON:
|
||||
if x['properties']['nom'] == 'Mairie de Jonage':
|
||||
assert get_mairie_opening_hours(x) is None
|
||||
assert get_mairie_opening_hours(x) == [('lundi', {'am': None, 'pm': ''}), ('mardi', {'am': None, 'pm': ''}), ('mercredi', {'am': None, 'pm': ''}), ('jeudi', {'am': None, 'pm': ''}), ('vendredi', {'am': None, 'pm': ''}), ('samedi', {'am': None, 'pm': ''}), ('dimanche', {'am': None, 'pm': ''})]
|
||||
return
|
||||
|
||||
|
||||
def test_mairie_sathonay_timetable():
|
||||
"""Sathonay-Village S1415"""
|
||||
test_time_table = [get_mairie_opening_hours(x) for x in GEOJSON if x['properties']['identifiant'] == 'S1415'][0]
|
||||
|
|
Loading…
Reference in New Issue