tests: add new case when hours belongs on next day (#48919)
This commit is contained in:
parent
3e8fd2843d
commit
2e0328ed29
|
@ -171,6 +171,7 @@ def test_mairie_holiday():
|
|||
@pytest.mark.parametrize('day, hours, badge, text', [
|
||||
('mercredi_pm', '14h30-17h45', 'closed', 'Réouvre mercredi à 14h30'),
|
||||
('mardi_pm', '14h30-17h45', 'closed', 'Réouvre demain à 14h30'),
|
||||
('mardi_pm', '14h30-00h15', 'closed', 'Réouvre demain à 14h30'),
|
||||
('lundi_pm', '14h30-17h45', 'closed', 'Réouvre à 14h30'),
|
||||
('lundi_am', '08h30-11h45', 'closed', 'Ouvre à 8h30'),
|
||||
('lundi_am', '00h00-00h45', 'soon-to-be-closed', "Ouvert jusqu'à 0h45"),
|
||||
|
@ -192,6 +193,7 @@ def test_mdr_format(day, hours, badge, text):
|
|||
@pytest.mark.parametrize('openinghour, badge, text', [
|
||||
('We 14:30-17:45', 'closed', 'Réouvre mercredi à 14h30'),
|
||||
('Tu 14:30-17:45', 'closed', 'Réouvre demain à 14h30'),
|
||||
('Tu 14:30-00:15', 'closed', 'Réouvre demain à 14h30'),
|
||||
('Mo 14:30-17:45', 'closed', 'Réouvre à 14h30'),
|
||||
('Mo 08:30-11:45', 'closed', 'Ouvre à 8h30'),
|
||||
('Mo 00:00-00:45', 'soon-to-be-closed', "Ouvert jusqu'à 0h45"),
|
||||
|
@ -213,6 +215,7 @@ def test_mairie_format_openinghours(openinghour, badge, text):
|
|||
@pytest.mark.parametrize('day, opens, closes, badge, text', [
|
||||
('Wednesday', '14:30', '17:45', 'closed', 'Réouvre mercredi à 14h30'),
|
||||
('Tuesday', '14:30', '17:45', 'closed', 'Réouvre demain à 14h30'),
|
||||
('Tuesday', '14:30', '00:15', 'closed', 'Réouvre demain à 14h30'),
|
||||
('Monday', '14:30', '17:45', 'closed', 'Réouvre à 14h30'),
|
||||
('Monday', '08:30', '11:45', 'closed', 'Ouvre à 8h30'),
|
||||
('Monday', '00:00', '00:45', 'soon-to-be-closed', "Ouvert jusqu'à 0h45"),
|
||||
|
|
Loading…
Reference in New Issue