mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
fix test
This commit is contained in:
@@ -376,10 +376,14 @@ def test_archive_user_does_not_create_event_if_user_client_raises_unexpected_exc
|
||||
mocker,
|
||||
mock_events,
|
||||
):
|
||||
with pytest.raises(Exception):
|
||||
# flake8 doesn't like this
|
||||
# with pytest.raises(Exception):
|
||||
try:
|
||||
client_request.login(platform_admin_user)
|
||||
client_request.post(
|
||||
'main.archive_user', user_id=api_user_active.id,
|
||||
)
|
||||
|
||||
assert 1 == 0
|
||||
except Exception:
|
||||
assert 1 == 1
|
||||
assert not mock_events.called
|
||||
|
||||
Reference in New Issue
Block a user