Skip to content

Commit d85caf6

Browse files
Altered batch_processing logic to not instantly fail the test on the first batch is more than 1 is found
1 parent 66c1cb2 commit d85caf6

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
@@ -48,7 +48,7 @@ def batch_processing(page: Page, batch_type: str, batch_description: str, latest
4848
pytest.fail(f"Failed to retrieve NHS Numbers from batch {link_text}, {str(e)}")
4949
link.click()
5050
break
51-
else:
51+
elif (i+1) == batch_description_cells.count():
5252
pytest.fail(f"No open '{batch_type} - {batch_description}' batch found")
5353

5454
ManageActiveBatch(page).click_prepare_button()

0 commit comments

Comments
 (0)