summary refs log tree commit diff
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2020-12-01 18:54:22 +0100
committersternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2020-12-01 18:54:22 +0100
commit1434e74ea0d943ed824afce49ac0afc4b47aa59c (patch)
treee9e81a2acc3cb8f05bcf6bc78ea3d01dd0a56d0d
parent7090e92d0b60ad22c7c2f017e33688774ce16f70 (diff)
test(warteraum): fix 401 expected exception checking
-rwxr-xr-xwarteraum/test/test_integration.py5
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)