Skip to content

Commit ae0f627

Browse files
committed
working on sonarcube issues
1 parent e9504be commit ae0f627

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

tests/regression/regression_tests/fobt_regression_tests/test_scenario_17.py

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -578,12 +578,11 @@ def test_scenario_17(page: Page) -> None:
578578
letter_type,
579579
)
580580
# Then my subject has been updated as follows:
581+
criteria = {"latest event status": "A415 Post-investigation Appointment Invitation Letter Printed"}
581582
subject_assertion(
582-
nhs_no,
583-
{
584-
"latest event status": "A415 Post-investigation Appointment Invitation Letter Printed",
585-
},
586-
)
583+
nhs_no,
584+
criteria,
585+
)
587586
# When I view the subject
588587
screening_subject_page_searcher.navigate_to_subject_summary_page(page, nhs_no)
589588
# And I view the event history for the subject's latest episode
@@ -594,13 +593,14 @@ def test_scenario_17(page: Page) -> None:
594593
# And I attend the subject's practitioner appointment "today"
595594
AppointmentDetailPage(page).mark_appointment_as_attended(datetime.today())
596595
# Then my subject has been updated as follows:
596+
criteria = {
597+
"latest episode includes event status": "A416 Post-investigation Appointment Attended ",
598+
"latest event status": "A316 Post-investigation Appointment Attended ",
599+
}
597600
subject_assertion(
598-
nhs_number=nhs_no,
599-
criteria={
600-
"latest episode includes event status": "A416 Post-investigation Appointment Attended ",
601-
"latest event status": "A316 Post-investigation Appointment Attended ",
602-
},
603-
)
601+
nhs_number=nhs_no,
602+
criteria=criteria,
603+
)
604604

605605
# When I view the subject
606606
screening_subject_page_searcher.navigate_to_subject_summary_page(page, nhs_no)
@@ -612,12 +612,11 @@ def test_scenario_17(page: Page) -> None:
612612
ReferToMDTPage(page).select_mdt_location_lookup(1)
613613
ReferToMDTPage(page).click_record_MDT_appointment_button()
614614
# Then my subject has been updated as follows:
615+
criteria = {"latest event status": "A348 MDT Referral Required"}
615616
subject_assertion(
616-
nhs_no,
617-
{
618-
"latest event status": "A348 MDT Referral Required",
619-
},
620-
)
617+
nhs_no,
618+
criteria,
619+
)
621620
# And there is a "A348" letter batch for my subject with the exact title "GP Letter Indicating Referral to MDT"
622621
# When I process the open "A348" letter batch for my subject
623622
batch_processing(
@@ -661,7 +660,7 @@ def test_scenario_17(page: Page) -> None:
661660
# When I switch users to BCSS "England" as user role "Hub Manager"
662661
LogoutPage(page).log_out(close_page=False)
663662
BasePage(page).go_to_log_in_page()
664-
user_role = UserTools.user_login(
663+
UserTools.user_login(
665664
page, "Hub Manager at BCS01", return_role_type=True
666665
)
667666

0 commit comments

Comments
 (0)