Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-pylib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-pylib
Commits
a2e56719
Commit
a2e56719
authored
3 months ago
by
Florian Spreckelsen
Browse files
Options
Downloads
Patches
Plain Diff
TST: Add test for
https://gitlab.com/linkahead/linkahead-pylib/-/issues/87
parent
2f7cb996
No related branches found
No related tags found
2 merge requests
!175
BUG: Request responses without the "Set-Cookie" header no longer overwrite the...
,
!169
F fix timeout error messages
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
unittests/test_error_handling.py
+7
-1
7 additions, 1 deletion
unittests/test_error_handling.py
with
7 additions
and
1 deletion
unittests/test_error_handling.py
+
7
−
1
View file @
a2e56719
...
...
@@ -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
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment