@@ -200,10 +200,10 @@ def test_scenario_17(page: Page) -> None:
200200 site = "The Royal Hospital (Wolverhampton)"
201201
202202 book_appointments (
203- page ,
204- screening_centre = screening_centre ,
205- site = site ,
206- )
203+ page ,
204+ screening_centre = screening_centre ,
205+ site = site ,
206+ )
207207
208208 # Then my subject has been updated as follows:
209209 subject_assertion (
@@ -219,8 +219,8 @@ def test_scenario_17(page: Page) -> None:
219219 is_active = True
220220
221221 SubjectRepository ().there_is_letter_batch_for_subject (
222- nhs_no , letter_code , letter_type , is_active
223- )
222+ nhs_no , letter_code , letter_type , is_active
223+ )
224224 # And there is a "A183" letter batch for my subject with the exact title "GP Result (Abnormal)"
225225 SubjectRepository ().there_is_letter_batch_for_subject (
226226 nhs_no , "A183" , "GP Result (Abnormal)" , True
@@ -339,9 +339,9 @@ def test_scenario_17(page: Page) -> None:
339339 # Then my subject has been updated as follows:
340340 criteria = {"latest event status" : "A259 Attended Diagnostic Test" }
341341 subject_assertion (
342- nhs_number = nhs_no ,
343- criteria = criteria ,
344- )
342+ nhs_number = nhs_no ,
343+ criteria = criteria ,
344+ )
345345
346346 # When I view the subject
347347 screening_subject_page_searcher .navigate_to_subject_summary_page (page , nhs_no )
@@ -376,8 +376,8 @@ def test_scenario_17(page: Page) -> None:
376376 "endoscope inserted" : "yes" ,
377377 "procedure type" : "therapeutic" ,
378378 "bowel preparation quality" : BowelPreparationQualityOptions .GOOD ,
379- "comfort during examination" : ComfortOptions .NO_DISCOMFORT ,
380379 "comfort during recovery" : ComfortOptions .NO_DISCOMFORT ,
380+ "comfort during examination" : ComfortOptions .NO_DISCOMFORT ,
381381 "endoscopist defined extent" : EndoscopyLocationOptions .APPENDIX ,
382382 "scope imager used" : YesNoOptions .YES ,
383383 "retroverted view" : YesNoOptions .NO ,
@@ -390,8 +390,8 @@ def test_scenario_17(page: Page) -> None:
390390 "late outcome" : LateOutcomeOptions .NO_COMPLICATIONS ,
391391 }
392392 general_information = {
393- "site" : 1 ,
394393 "practitioner" : 1 ,
394+ "site" : 1 ,
395395 "testing clinician" : person_name ,
396396 "aspirant endoscopist" : None ,
397397 }
@@ -406,8 +406,8 @@ def test_scenario_17(page: Page) -> None:
406406 {
407407 "location" : EndoscopyLocationOptions .ANASTOMOSIS ,
408408 "classification" : PolypClassificationOptions .IP ,
409- "estimate of whole polyp size" : "11" ,
410409 "polyp access" : PolypAccessOptions .EASY ,
410+ "estimate of whole polyp size" : "11" ,
411411 "left in situ" : YesNoOptions .NO ,
412412 },
413413 {
@@ -420,8 +420,8 @@ def test_scenario_17(page: Page) -> None:
420420 {
421421 "location" : EndoscopyLocationOptions .HEPATIC_FLEXURE ,
422422 "classification" : PolypClassificationOptions .LST_NG ,
423- "estimate of whole polyp size" : "21" ,
424423 "polyp access" : PolypAccessOptions .EASY ,
424+ "estimate of whole polyp size" : "21" ,
425425 "left in situ" : YesNoOptions .NO ,
426426 },
427427 ]
@@ -458,8 +458,8 @@ def test_scenario_17(page: Page) -> None:
458458 # And I add histology for 3 polyps with the following fields and values within the Investigation Dataset for this subject:
459459 polyp_histology = [
460460 {
461- "date of receipt" : datetime .today (),
462461 "date of reporting" : datetime .today (),
462+ "date of receipt" : datetime .today (),
463463 "pathology provider" : 1 ,
464464 "pathologist" : 1 ,
465465 "polyp type" : PolypTypeOptions .ADENOMA ,
@@ -536,11 +536,10 @@ def test_scenario_17(page: Page) -> None:
536536 # And I save the Diagnostic Test Outcome information
537537 DiagnosticTestOutcomePage (page ).click_save_button ()
538538 # Then my subject has been updated as follows:
539+ criteria = {"latest event status" : "A315 Diagnostic Test Outcome Entered" }
539540 subject_assertion (
540541 nhs_no ,
541- {
542- "latest event status" : "A315 Diagnostic Test Outcome Entered" ,
543- },
542+ criteria ,
544543 )
545544 # When I advance the subject's episode for "Post-investigation Appointment Required"
546545 SubjectScreeningSummaryPage (page ).click_advance_fobt_screening_episode_button ()
@@ -570,10 +569,13 @@ def test_scenario_17(page: Page) -> None:
570569 )
571570 # And there is a "A410" letter batch for my subject with the exact title "Post-Investigation Appointment Invitation Letter"
572571 # When I process the open "A410 - Post-Investigation Appointment Invitation Letter" letter batch for my subject
572+ letter_code = "A410"
573+ letter_type = "Post-Investigation Appointment Invitation Letter"
574+
573575 batch_processing (
574576 page ,
575- "A410" ,
576- "Post-Investigation Appointment Invitation Letter" ,
577+ letter_code ,
578+ letter_type ,
577579 )
578580 # Then my subject has been updated as follows:
579581 subject_assertion (
@@ -671,7 +673,6 @@ def test_scenario_17(page: Page) -> None:
671673 page = page ,
672674 batch_type = "A183" ,
673675 batch_description = "GP Result (Abnormal)" ,
674- # latest_event_status="A357 - Patient Unfit, Handover into Symptomatic Care",
675676 )
676677
677678 # Then my subject has been updated as follows:
0 commit comments