Skip to content

Commit 7696c6f

Browse files
authored
Merge pull request #555 from NHSDigital/setup-session-one-week-ago
Update invite to clinic session test
2 parents e5ba58a + d9c94e0 commit 7696c6f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

mavis/test/pages/sessions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -673,12 +673,12 @@ def schedule_a_valid_session(
673673
location: str,
674674
programme_group: str,
675675
for_today: bool = False,
676-
yesterday: bool = False,
676+
past: bool = False,
677677
):
678-
# scheduling a session for yesterday is a temporary measure for the rollover period
678+
# scheduling a session in the past is a temporary measure for the rollover period
679679
# this will be disallowed in the future
680-
if yesterday:
681-
offset_days = -1
680+
if past:
681+
offset_days = -7
682682
elif for_today:
683683
offset_days = 0
684684
else:

tests/test_programmes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def setup_mav_854(
9797
batch_name = add_vaccine_batch(Vaccine.GARDASIL_9)
9898
dashboard_page.click_mavis()
9999
dashboard_page.click_sessions()
100-
sessions_page.schedule_a_valid_session(school, Programme.HPV, yesterday=True)
100+
sessions_page.schedule_a_valid_session(school, Programme.HPV, past=True)
101101
sessions_page.click_import_class_lists()
102102
import_records_page.import_class_list_for_current_year(
103103
ClassFileMapping.FIXED_CHILD, year_group

0 commit comments

Comments
 (0)