This commit is contained in:
Kenneth Kehl
2023-07-26 09:09:06 -07:00
parent 8280dadc35
commit 559ed217e4
2 changed files with 12 additions and 8 deletions

View File

@@ -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