Skip to content

Commit 1872d01

Browse files
Changing the batch_processing util so only True needs to be provided and the default is False
1 parent 02a7ee8 commit 1872d01

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/Smokescreen/test_compartment_1.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def test_compartment_1(page: Page) -> None:
5151
# Print the batch of Pre-Invitation Letters - England
5252
logging.info("Compartment 1 - Process S1 Batch")
5353
if self_referrals_available:
54-
batch_processing(page, "S1", "Pre-invitation (FIT) (digital leaflet)", "S9 - Pre-invitation Sent", False)
54+
batch_processing(page, "S1", "Pre-invitation (FIT) (digital leaflet)", "S9 - Pre-invitation Sent")
5555
else:
5656
logging.warning("Skipping S1 Pre-invitation (FIT) (digital leaflet) as no self referral invitations were generated")
5757
batch_processing(page, "S1", "Pre-invitation (FIT)", "S9 - Pre-invitation Sent", True)
@@ -62,7 +62,7 @@ def test_compartment_1(page: Page) -> None:
6262

6363
# Print a set of reminder letters
6464
logging.info("Compartment 1 - Process S10 Batch")
65-
batch_processing(page, "S10", "Test Kit Reminder", "S19 - Reminder of Initial Test Sent", False)
65+
batch_processing(page, "S10", "Test Kit Reminder", "S19 - Reminder of Initial Test Sent")
6666

6767
# Log out
6868
Logout(page).log_out()

utils/batch_processing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from playwright.sync_api import Page
1313
import logging
1414

15-
def batch_processing(page: Page, batch_type: str, batch_description: str, latest_event_status: str, run_timed_events: bool):
15+
def batch_processing(page: Page, batch_type: str, batch_description: str, latest_event_status: str, run_timed_events: bool = False):
1616
logging.info(f"Processing {batch_type} - {batch_description} batch")
1717
NavigationBar(page).click_main_menu_link()
1818
MainMenu(page).go_to_communications_production_page()

0 commit comments

Comments
 (0)