mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Move inline import to top of file
Usually we have imports at the top. It looks like the reason for them being inline was to avoid a circular import, but we can also avoid this by not importing everything from the app module. Since we're about to add more imports from event_handlers, now is a good time to refactor them. Note this matches how we import the event handlers in every other module.
This commit is contained in:
@@ -334,7 +334,7 @@ def test_register_from_email_auth_invite(
|
||||
fake_uuid,
|
||||
mocker,
|
||||
):
|
||||
mock_audit_event = mocker.patch('app.event_handlers.create_add_user_to_service_event')
|
||||
mock_audit_event = mocker.patch('app.models.user.create_add_user_to_service_event')
|
||||
|
||||
sample_invite['auth_type'] = 'email_auth'
|
||||
sample_invite['email_address'] = invite_email_address
|
||||
|
||||
Reference in New Issue
Block a user