Skip to content

Commit 4be0614

Browse files
committed
working on sonarcube issues
1 parent ae0f627 commit 4be0614

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

tests/regression/regression_tests/fobt_regression_tests/test_scenario_17.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -470,8 +470,8 @@ def test_scenario_17(page: Page) -> None:
470470
"polyp carcinoma": YesNoUncertainOptions.NO,
471471
},
472472
{
473-
"date of receipt": datetime.today(),
474473
"date of reporting": datetime.today(),
474+
"date of receipt": datetime.today(),
475475
"pathology provider": 1,
476476
"pathologist": 1,
477477
"polyp type": PolypTypeOptions.ADENOMA,
@@ -489,8 +489,8 @@ def test_scenario_17(page: Page) -> None:
489489
# When I press the save Investigation Dataset button
490490
InvestigationDatasetCompletion(page).complete_dataset_with_args(
491491
general_information=general_information,
492-
drug_information=drug_information,
493492
endoscopy_information=endoscopy_information,
493+
drug_information=drug_information,
494494
failure_information=failure_information,
495495
completion_information=completion_information,
496496
polyp_information=polyp_information,
@@ -499,23 +499,19 @@ def test_scenario_17(page: Page) -> None:
499499
)
500500
# Then the Investigation Dataset result message, which I will cancel, is "LNPCP"
501501
InvestigationDatasetsPage(page).expect_text_to_be_visible("LNPCP")
502-
# Then I confirm the Polyp Algorithm Size for Polyp 1 is 13
502+
# Then I confirm the Polyp Algorithm Size for Polyp 1,2 and 3 are 13,4,21 respectively
503503
InvestigationDatasetsPage(page).assert_polyp_algorithm_size(1, "13")
504504

505-
# And I confirm the Polyp Algorithm Size for Polyp 2 is 4
506505
InvestigationDatasetsPage(page).assert_polyp_algorithm_size(2, "4")
507506

508-
# And I confirm the Polyp Algorithm Size for Polyp 3 is 21
509507
InvestigationDatasetsPage(page).assert_polyp_algorithm_size(3, "21")
510-
# And I confirm the Polyp Category for Polyp 1 is "Advanced colorectal polyp"
508+
# And I confirm the Polyp Category for Polyp 1,2,3 are "Advanced colorectal polyp", "Premalignant polyp" and "LNPCP" respectively
511509
InvestigationDatasetsPage(page).assert_polyp_category(
512510
1, "Advanced colorectal polyp"
513511
)
514512

515-
# And I confirm the Polyp Category for Polyp 2 is "Premalignant polyp"
516513
InvestigationDatasetsPage(page).assert_polyp_category(2, "Premalignant polyp")
517514

518-
# And I confirm the Polyp Category for Polyp 3 is "LNPCP"
519515
InvestigationDatasetsPage(page).assert_polyp_category(3, "LNPCP")
520516
# And I confirm the Episode Result is "Abnormal"
521517
EpisodeRepository().confirm_episode_result(nhs_no, "LNPCP")

0 commit comments

Comments
 (0)