Skip to content
Snippets Groups Projects
Verified Commit df8cb239 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

FIX: Wrong syntax in tests.

parent 07c58b45
No related branches found
No related tags found
1 merge request!70Miscellaneous URI-too-long tests
Pipeline #44523 passed
......@@ -353,14 +353,14 @@ def test_URI_too_long():
uri_long = 819
header_long = 815
with pytest.raises(db.TransactionError) as err:
with pytest.raises(db.TransactionError) as excinfo:
db.execute_query("0123456789" * short)
assert "Parsing" in err.msg
assert "Parsing" in excinfo.value.msg
with pytest.raises(db.HTTPURITooLongError) as err:
with pytest.raises(db.HTTPURITooLongError) as excinfo:
db.execute_query("0123456789" * uri_long)
assert "414" in err.msg
assert "414" in excinfo.value.msg
with pytest.raises(db.HTTPURITooLongError) as err:
with pytest.raises(db.HTTPURITooLongError) as excinfo:
db.execute_query("0123456789" * header_long)
assert "431" in err.msg
assert "431" in excinfo.value.msg
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment