Skip to content

Commit 0bbc81f

Browse files
Changing pytest.fail into raise ValueError
1 parent 7ebec9a commit 0bbc81f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/batch_processing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def batch_processing(
8080
check_batch_in_archived_batch_list(page, link_text)
8181

8282
if nhs_no_df is None:
83-
pytest.fail("No NHS numbers were retrieved for the batch")
83+
raise ValueError("No NHS numbers were retrieved for the batch")
8484

8585
for subject in range(len(nhs_no_df)):
8686
nhs_no = nhs_no_df["subject_nhs_number"].iloc[subject]

0 commit comments

Comments
 (0)