Skip to content

Commit 61f75b0

Browse files
committed
correcting format errors
1 parent 8209e42 commit 61f75b0

File tree

1 file changed

+23
-10
lines changed

1 file changed

+23
-10
lines changed

tests/regression/notes/test_additional_care_notes.py

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,8 @@ def test_update_existing_additional_care_note(
423423

424424

425425
def test_remove_existing_additional_care_note(
426-
page: Page, general_properties: dict) -> None:
426+
page: Page, general_properties: dict
427+
) -> None:
427428
"""
428429
Test to verify if an existing Additional Care note can be removed for a subject with one Additional Care note.
429430
"""
@@ -439,7 +440,11 @@ def test_remove_existing_additional_care_note(
439440
BasePage(page).go_to_screening_subject_search_page()
440441

441442
# Search for the subject by NHS Number.")
442-
subjects_df = get_subjects_by_note_count(general_properties["additional_care_note_type_value"], general_properties["note_status_active"], 1)
443+
subjects_df = get_subjects_by_note_count(
444+
general_properties["additional_care_note_type_value"],
445+
general_properties["note_status_active"],
446+
1,
447+
)
443448
nhs_no = subjects_df["subject_nhs_number"].iloc[0]
444449
SubjectScreeningPage(page).fill_nhs_number(nhs_no)
445450
SubjectScreeningPage(page).select_search_area_option("07")
@@ -451,7 +456,7 @@ def test_remove_existing_additional_care_note(
451456
SubjectScreeningSummaryPage(page).verify_note_link_not_present(
452457
general_properties["additional_care_note_name"]
453458
)
454-
459+
455460
SubjectScreeningSummaryPage(page).click_subjects_events_notes()
456461
SubjectEventsNotes(page).select_note_type(NotesOptions.ADDITIONAL_CARE_NOTE)
457462
logging.info(
@@ -466,7 +471,9 @@ def test_remove_existing_additional_care_note(
466471
screening_subject_id = int(subjects_df["screening_subject_id"].iloc[0])
467472
logging.info(f"Screening Subject ID retrieved: {screening_subject_id}")
468473
type_id = int(subjects_df["type_id"].iloc[0])
469-
notes_df = get_supporting_notes(screening_subject_id, type_id,general_properties["note_status_active"])
474+
notes_df = get_supporting_notes(
475+
screening_subject_id, type_id, general_properties["note_status_active"]
476+
)
470477
# Verify that the DataFrame is not empty
471478
if not notes_df.empty:
472479
pytest.fail(
@@ -496,11 +503,11 @@ def test_remove_existing_additional_care_note_for_subject_with_multiple_notes(
496503
BasePage(page).go_to_screening_subject_search_page()
497504

498505
# Get a subject with multiple additional care notes
499-
subjects_df = get_subjects_with_multiple_notes(general_properties["additional_care_note_type_value"])
506+
subjects_df = get_subjects_with_multiple_notes(
507+
general_properties["additional_care_note_type_value"]
508+
)
500509
if subjects_df.empty:
501-
logging.info(
502-
"No subjects found with multiple Additional Care Notes."
503-
)
510+
logging.info("No subjects found with multiple Additional Care Notes.")
504511
pytest.fail("No subjects found with multiple Additional Care Notes.")
505512
nhs_no = subjects_df["subject_nhs_number"].iloc[0]
506513
logging.info(f"Searching for subject with NHS Number: {nhs_no}")
@@ -530,7 +537,11 @@ def test_remove_existing_additional_care_note_for_subject_with_multiple_notes(
530537
logging.info(f"Screening Subject ID retrieved: {screening_subject_id}")
531538

532539
# Get the notes from the database
533-
notes_df = get_supporting_notes(screening_subject_id, general_properties["additional_care_note_type_value"],general_properties["note_status_active"])
540+
notes_df = get_supporting_notes(
541+
screening_subject_id,
542+
general_properties["additional_care_note_type_value"],
543+
general_properties["note_status_active"],
544+
)
534545
# Loop through the list of active notes and check if the removed note is still present
535546
logging.info(
536547
"Looping through active notes to verify the removed note is not present."
@@ -557,7 +568,9 @@ def test_remove_existing_additional_care_note_for_subject_with_multiple_notes(
557568

558569
# Get the notes from the database
559570
notes_df = get_supporting_notes(
560-
screening_subject_id, general_properties["additional_care_note_type_value"],general_properties["note_status_obsolete"]
571+
screening_subject_id,
572+
general_properties["additional_care_note_type_value"],
573+
general_properties["note_status_obsolete"],
561574
)
562575
# Verify that the removed note is present among obsolete notes
563576
logging.info("Verifying that the removed note is present among obsolete notes.")

0 commit comments

Comments
 (0)