Skip to content

Commit 0e75436

Browse files
As per PR 42 comments, Code Refactoring & formatting using Black Formatter been made.
1 parent 6b8bc1c commit 0e75436

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

pages/datasets/colonoscopy_dataset_page.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,21 @@ def select_asa_grade_option(self, option: str) -> None:
3838
"""
3939
This method is designed to select a specific grade option from the colonoscopy dataset page, ASA Grade dropdown menu.
4040
Args:
41-
option (str): The ASA grade option to be selected. This should be a string that matches one of the available options in the dropdown menu.
42-
Valid options are: "FIT", "RELEVANT_DISEASE", "UNABLE_TO_ASSESS", RESTRICTIVE_DISEASE, "LIFE_THREATENING_DISEASE", "MORIBUND", "NOT_APPLICABLE", or "NOT_KNOWN".
41+
option (str): The ASA grade option to be selected. This should be a string that matches one of the available options in the dropdown menu.
42+
Valid options are: "FIT", "RELEVANT_DISEASE", "UNABLE_TO_ASSESS", RESTRICTIVE_DISEASE, "LIFE_THREATENING_DISEASE", "MORIBUND", "NOT_APPLICABLE", or "NOT_KNOWN".
4343
Returns:
44-
None
44+
None
4545
"""
4646
self.select_asa_grade_dropdown.select_option(option)
4747

4848
def select_fit_for_colonoscopy_option(self, option: str) -> None:
4949
"""
5050
This method is designed to select a specific option from the colonoscopy dataset page, Fit for Colonoscopy (SSP) dropdown menu.
5151
Args:
52-
option (str): The option to be selected. This should be a string that matches one of the available options in the dropdown menu.
53-
Valid options are: "YES", "NO", or "UNABLE_TO_ASSESS".
52+
option (str): The option to be selected. This should be a string that matches one of the available options in the dropdown menu.
53+
Valid options are: "YES", "NO", or "UNABLE_TO_ASSESS".
5454
Returns:
55-
None
55+
None
5656
"""
5757
self.select_fit_for_colonoscopy_dropdown.select_option(option)
5858

pages/screening_subject_search/contact_with_patient_page.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,25 @@
55

66

77
class ContactWithPatientPage(BasePage):
8+
"""
9+
ContactWithPatientPage class for interacting with 'Contact With Patient' page elements.
10+
"""
11+
812
def __init__(self, page: Page):
913
super().__init__(page)
1014
self.page = page
1115

1216
# Contact With Patient - Page Locators
1317
self.contact_direction_dropdown = self.page.locator("#UI_DIRECTION")
14-
self.contact_made_between_patient_and_dropdown = self.page.locator("#UI_CALLER_ID")
18+
self.contact_made_between_patient_and_dropdown = self.page.locator(
19+
"#UI_CALLER_ID"
20+
)
1521
self.calendar_button = self.page.get_by_role("button", name="Calendar")
1622
self.time_from_text_field = self.page.get_by_role("textbox", name="Start Time")
1723
self.time_to_text_field = self.page.get_by_role("textbox", name="End Time")
18-
self.discussion_record_text_field = self.page.get_by_role("textbox", name="Discussion Record")
24+
self.discussion_record_text_field = self.page.get_by_role(
25+
"textbox", name="Discussion Record"
26+
)
1927
self.outcome_dropdown = self.page.locator("##UI_OUTCOME")
2028
self.save_button = self.page.get_by_role("button", name="Save")
2129

@@ -42,5 +50,3 @@ def select_outcome_dropdown_option(self, outcome: str) -> None:
4250

4351
def click_save_button(self) -> None:
4452
self.click(self.save_button)
45-
46-

tests/smokescreen/test_compartment_5.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def test_compartment_5(page: Page, smokescreen_properties: dict) -> None:
192192
# 'Start Time', 11:00
193193
# 'End Time', 12:00
194194
# 'Discussion Record' TEST AUTOMATION
195-
# select 'Outcome' - 'Post-investigation Appointment Not Required' and click 'Save'
195+
# select 'Outcome' - 'Post-investigation Appointment Not Required' and click 'Save'
196196

197197
ContactWithPatientPage(page).select_direction_dropdown_option("To patient")
198198
ContactWithPatientPage(page).select_caller_id_dropdown_index_option(1)

0 commit comments

Comments
 (0)