Skip to content

Commit beb1e96

Browse files
Responded to review comments
1 parent d4835da commit beb1e96

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

tests/smokescreen/test_compartment_6.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
AdvanceFOBTScreeningEpisodePage,
4949
)
5050
from utils.dataset_field_util import DatasetFieldUtil
51-
from utils.oracle.oracle_specific_functions import get_subjects_for_investigations
51+
from utils.oracle.oracle_specific_functions import get_subjects_for_investigation_dataset_updates
5252
from utils.subject_demographics import SubjectDemographicUtil
5353

5454

@@ -313,7 +313,7 @@ def test_compartment_6(page: Page, smokescreen_properties: dict) -> None:
313313

314314
# This needs to be repeated for two subjects, one old and one not - High Risk Result
315315
# Older patient
316-
subjects_df = get_subjects_for_investigations(smokescreen_properties["c6_eng_number_of_subjects_to_record"], smokescreen_properties["c6_eng_org_id"])
316+
subjects_df = get_subjects_for_investigation_dataset_updates(smokescreen_properties["c6_eng_number_of_subjects_to_record"], smokescreen_properties["c6_eng_org_id"])
317317
nhs_no = subjects_df["subject_nhs_number"].iloc[0]
318318
SubjectDemographicUtil(page).update_subject_dob(nhs_no, False)
319319
go_to_investigation_datasets_page(page, nhs_no)
@@ -362,7 +362,6 @@ def test_compartment_6(page: Page, smokescreen_properties: dict) -> None:
362362

363363
# This needs to be repeated for two subjects, one old and one not - LNPCP Result
364364
# Older patient
365-
# nhs_no = "9840970194"
366365
nhs_no = subjects_df["subject_nhs_number"].iloc[2]
367366
SubjectDemographicUtil(page).update_subject_dob(nhs_no, False)
368367
go_to_investigation_datasets_page(page, nhs_no)
@@ -379,7 +378,6 @@ def test_compartment_6(page: Page, smokescreen_properties: dict) -> None:
379378
handover_subject_to_symptomatic_care(page)
380379

381380
# Younger patient
382-
# nhs_no = "9717136637"
383381
nhs_no = subjects_df["subject_nhs_number"].iloc[3]
384382
SubjectDemographicUtil(page).update_subject_dob(nhs_no, True)
385383
go_to_investigation_datasets_page(page, nhs_no)
@@ -409,7 +407,6 @@ def test_compartment_6(page: Page, smokescreen_properties: dict) -> None:
409407
)
410408

411409
# This needs to be repeated for 1 subject, age does not matter - Normal Result
412-
# nhs_no_normal = "9673858853"
413410
nhs_no_normal = subjects_df["subject_nhs_number"].iloc[4]
414411
go_to_investigation_datasets_page(page, nhs_no_normal)
415412

utils/oracle/oracle_specific_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ def get_subjects_with_booked_appointments(subjects_to_retrieve: int) -> pd.DataF
367367
return subjects_df
368368

369369

370-
def get_subjects_for_investigations(
370+
def get_subjects_for_investigation_dataset_updates(
371371
number_of_subjects: int, hub_id: str
372372
) -> pd.DataFrame:
373373
"""

0 commit comments

Comments
 (0)