Skip to content
Snippets Groups Projects
Merged I. Nüske requested to merge f-fix-login-failed-on-long-request into dev
1 file
+ 3
2
Compare changes
  • Side-by-side
  • Inline
@@ -74,10 +74,11 @@ def test_gitlab_com_103():
See https://gitlab.com/linkahead/linkahead-pylib/-/issues/103 and
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
db.configure_connection(auth_token=auth_token)
#
# Trigger UriTooLong error and check correct error thrown
c = db.Container()
c.extend([db.Record(id=i) for i in range(1000, 5000)])
with pytest.raises(db.exceptions.TransactionError) as te:
Loading