Skip to content
Snippets Groups Projects
Commit a2e56719 authored by Florian Spreckelsen's avatar Florian Spreckelsen
Browse files
parent 2f7cb996
No related branches found
No related tags found
2 merge requests!175BUG: Request responses without the "Set-Cookie" header no longer overwrite the...,!169F fix timeout error messages
......@@ -30,7 +30,7 @@ import linkahead as db
from linkahead.common.models import raise_errors
from linkahead.exceptions import (AuthorizationError,
EntityDoesNotExistError, EntityError,
EntityHasNoDatatypeError,
EntityHasNoDatatypeError, HTTPServerError,
TransactionError, UniqueNamesError,
UnqualifiedParentsError,
UnqualifiedPropertiesError)
......@@ -315,3 +315,9 @@ def test_container_with_faulty_elements():
# record raises both of them
assert (isinstance(err, UnqualifiedParentsError) or
isinstance(err, UnqualifiedPropertiesError))
def test_incomplete_server_error_response():
"""The reason behind https://gitlab.com/linkahead/linkahead-pylib/-/issues/87."""
err = HTTPServerError("Bla")
assert str(err) == "Bla"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment