diff options
author | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2020-12-01 18:54:22 +0100 |
---|---|---|
committer | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2020-12-01 18:54:22 +0100 |
commit | 1434e74ea0d943ed824afce49ac0afc4b47aa59c (patch) | |
tree | e9e81a2acc3cb8f05bcf6bc78ea3d01dd0a56d0d | |
parent | 7090e92d0b60ad22c7c2f017e33688774ce16f70 (diff) |
test(warteraum): fix 401 expected exception checking
-rwxr-xr-x | warteraum/test/test_integration.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/warteraum/test/test_integration.py b/warteraum/test/test_integration.py index df657dd..0eabf7a 100755 --- a/warteraum/test/test_integration.py +++ b/warteraum/test/test_integration.py @@ -95,9 +95,10 @@ def test_expected_authentication_failures(): my_id = tmp_client.add(t) # but not delete them - with pytest.raises(FlipdotGschichtlerError) as err: + with pytest.raises(FlipdotGschichtlerError) as exc_info: tmp_client.delete(my_id) - assert err.status == 403 + + assert exc_info.value.status == 401 # what our normal client can do api.delete(my_id) |