Skip to content

Commit 6da8754

Browse files
Fixing file format and duplication errors
1 parent 7e3f291 commit 6da8754

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

pages/screening_subject_search/patient_advised_of_diagnosis_page.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ def select_diagnosis_reason(self, reason: str) -> None:
3434
reason (str): The reason for the diagnosis.
3535
"""
3636
self.reason_dropdown.select_option(label=reason)
37-
self.click(self.save_button)
37+
self.click(self.save_button)

tests/regression/regression_tests/fobt_regression_tests/test_scenario_9.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ def test_scenario_9(page: Page) -> None:
133133
FitKitLogged().read_latest_logged_kit(user_role, 2, fit_kit, "ABNORMAL")
134134

135135
# Then my subject has been updated as follows:
136-
subject_assertion(nhs_no, {"latest event status": "A8 Abnormal"})
136+
criteria = {"latest event status": "A8 Abnormal"}
137+
subject_assertion(nhs_no, criteria)
137138

138139
# When I view the subject
139140
screening_subject_page_searcher.navigate_to_subject_summary_page(page, nhs_no)
@@ -153,7 +154,7 @@ def test_scenario_9(page: Page) -> None:
153154
# Then my subject has been updated as follows:
154155
subject_assertion(
155156
nhs_no,
156-
{
157+
criteria={
157158
"latest event status": "A183 1st Colonoscopy Assessment Appointment Requested",
158159
},
159160
)
@@ -191,7 +192,7 @@ def test_scenario_9(page: Page) -> None:
191192
# Then my subject has been updated as follows:
192193
subject_assertion(
193194
nhs_no,
194-
{
195+
criteria={
195196
"latest event status": "J10 Attended Colonoscopy Assessment Appointment",
196197
},
197198
)

utils/oracle/subject_selection_query_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,7 @@ def _add_criteria_latest_episode_kit_class(self) -> None:
11281128
" SELECT tkt.tk_type_id"
11291129
" FROM tk_type_t tkt "
11301130
f" WHERE tkt.tk_test_class_id {comparator} {kit_class_id} "
1131-
" ) "
1131+
" ) "
11321132
)
11331133

11341134
except Exception:

0 commit comments

Comments
 (0)