File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -116,8 +116,8 @@ def __init__(
116116 'EventReceiverRule' ,
117117 event_bus = event_bus ,
118118 # match any event detail_type except provider.homeJurisdictionChange
119- # (home jurisdiction change events are already recorded in provider history, and are not specific to one jurisdiction
120- # so we don't need to record them in the data events table)
119+ # (home jurisdiction change events are already recorded in provider history, and are not specific
120+ # to one jurisdiction so we don't need to record them in the data events table)
121121 event_pattern = EventPattern (detail_type = Match .anything_but ('provider.homeJurisdictionChange' )),
122122 targets = [SqsQueue (self .event_processor .queue , dead_letter_queue = self .event_processor .dlq )],
123123 )
Original file line number Diff line number Diff line change 1111 call_provider_users_me_endpoint ,
1212 get_provider_user_auth_headers_cached ,
1313 get_provider_user_records ,
14- load_smoke_test_env
14+ load_smoke_test_env ,
1515)
1616
1717# This script can be run locally to test the home jurisdiction change flow against a sandbox environment
@@ -130,9 +130,7 @@ def test_home_jurisdiction_change_inactivates_privileges_when_no_license_in_new_
130130 provider_id = provider_info_after_change .get ('providerId' )
131131 compact = provider_info_after_change .get ('compact' )
132132 provider_user_records = get_provider_user_records (compact = compact , provider_id = provider_id )
133- ne_privileges = provider_user_records .get_privilege_records (
134- filter_condition = lambda p : p .jurisdiction == 'ne'
135- )
133+ ne_privileges = provider_user_records .get_privilege_records (filter_condition = lambda p : p .jurisdiction == 'ne' )
136134
137135 if not ne_privileges :
138136 raise SmokeTestFailureException ('Nebraska privilege not found after home jurisdiction change' )
@@ -146,9 +144,7 @@ def test_home_jurisdiction_change_inactivates_privileges_when_no_license_in_new_
146144 )
147145
148146 if ne_privilege .status != 'inactive' :
149- raise SmokeTestFailureException (
150- f"Privilege status should be 'inactive', but got '{ ne_privilege .status } '"
151- )
147+ raise SmokeTestFailureException (f"Privilege status should be 'inactive', but got '{ ne_privilege .status } '" )
152148
153149 # change home jurisdiction back to original
154150 logger .info (f'Restoring original home jurisdiction: { original_jurisdiction } ' )
You can’t perform that action at this time.
0 commit comments