Skip to content
Snippets Groups Projects
Commit b27a55a3 authored by I. Nüske's avatar I. Nüske
Browse files

DOC: Add test comments

parent 2f5e5571
No related branches found
No related tags found
1 merge request!83Add test for https://gitlab.com/linkahead/linkahead-pylib/-/issues/103
Pipeline #58116 passed
...@@ -74,10 +74,11 @@ def test_gitlab_com_103(): ...@@ -74,10 +74,11 @@ def test_gitlab_com_103():
See https://gitlab.com/linkahead/linkahead-pylib/-/issues/103 and See https://gitlab.com/linkahead/linkahead-pylib/-/issues/103 and
https://gitlab.indiscale.com/caosdb/customers/f-fit/management/-/issues/82 https://gitlab.indiscale.com/caosdb/customers/f-fit/management/-/issues/82
""" """
# # Configure connection to use auth_token
auth_token = db.get_connection()._authenticator.auth_token auth_token = db.get_connection()._authenticator.auth_token
db.configure_connection(auth_token=auth_token) db.configure_connection(auth_token=auth_token)
#
# Trigger UriTooLong error and check correct error thrown
c = db.Container() c = db.Container()
c.extend([db.Record(id=i) for i in range(1000, 5000)]) c.extend([db.Record(id=i) for i in range(1000, 5000)])
with pytest.raises(db.exceptions.TransactionError) as te: with pytest.raises(db.exceptions.TransactionError) as te:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment