Skip to content

Commit 7300b1e

Browse files
committed
wip and resolving commit errors
1 parent 5522696 commit 7300b1e

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

classes/repositories/user_repository.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ def get_pio_id_for_role(self, role: "UserRoleType") -> Optional[int]:
2424
INNER JOIN person prs ON prs.prs_id = pio.prs_id
2525
INNER JOIN org ON org.org_id = pio.org_id
2626
WHERE prs.oe_user_code = :user_code
27-
AND org.org_code = :org_code
28-
AND pio.role_id = :role_id
29-
AND pio.is_bcss_user = 1
30-
AND TRUNC(SYSDATE) BETWEEN TRUNC(pio.start_date) AND NVL(pio.end_date, SYSDATE)
27+
AND org.org_code = :org_code
28+
AND pio.role_id = :role_id
29+
AND pio.is_bcss_user = 1
30+
AND TRUNC(SYSDATE) BETWEEN TRUNC(pio.start_date) AND NVL(pio.end_date, SYSDATE)
3131
"""
3232
params = {
3333
"user_code": role.user_code,

tests/regression/regression_tests/fobt_regression_tests/test_scenario_2.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,11 @@ def test_scenario_2(page: Page) -> None:
254254
# Assert subject details in the UI
255255
summary_page.assert_latest_event_status("S158 Subject Discharge Sent (Normal)")
256256
logging.info("[UI ASSERTIONS COMPLETE]Updated subject details checked in the UI")
257-
# TODO: And there is a "S158" letter batch for my subject with the exact title "GP Result (Normal)"
257+
258+
# And there is a "S158" letter batch for my subject with the exact title "GP Result (Normal)"
259+
navigate_to_active_batch_list(page)
260+
ActiveBatchListPage(page).is_batch_present("S158 - GP Result (Normal)")
261+
logging.info("[ASSERTIONS COMPLETE]S158 Letter batch exists")
258262

259263
# When I process the open "S158" letter batch for my subject
260264
batch_processing(

0 commit comments

Comments
 (0)