Skip to content

Commit 885c9cb

Browse files
Fixing SonarQube duplication errors
1 parent 2d0005c commit 885c9cb

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

tests/regression/regression_tests/fobt_regression_tests/test_scenario_10.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,12 @@ def test_scenario_10(page: Page) -> None:
131131
"subject has unprocessed sspi updates": "No",
132132
"subject has user dob updates": "No",
133133
}
134-
subject = Subject()
135-
user = User()
136134
builder = SubjectSelectionQueryBuilder()
137135

138136
query, bind_vars = builder.build_subject_selection_query(
139137
criteria=criteria,
140-
user=user,
141-
subject=subject,
138+
user=User(),
139+
subject=Subject(),
142140
subjects_to_retrieve=1,
143141
)
144142

@@ -164,9 +162,7 @@ def test_scenario_10(page: Page) -> None:
164162
# Then my subject has been updated as follows:
165163
subject_assertion(
166164
nhs_no,
167-
{
168-
"latest event status": "S43 Kit Returned and Logged (Initial Test)",
169-
},
165+
{"latest event status": "S43 Kit Returned and Logged (Initial Test)"},
170166
)
171167

172168
# When I read my subject's latest logged FIT kit as "ABNORMAL"
@@ -191,11 +187,12 @@ def test_scenario_10(page: Page) -> None:
191187
)
192188

193189
# Then my subject has been updated as follows:
190+
criteria = {
191+
"latest event status": "A183 1st Colonoscopy Assessment Appointment Requested"
192+
}
194193
subject_assertion(
195194
nhs_no,
196-
{
197-
"latest event status": "A183 1st Colonoscopy Assessment Appointment Requested",
198-
},
195+
criteria,
199196
)
200197

201198
# And there is a "A183" letter batch for my subject with the exact title "Practitioner Clinic 1st Appointment"

0 commit comments

Comments
 (0)