diff --git a/tests/test_issues_server.py b/tests/test_issues_server.py index c700392175c8e461903e8f10f39cff5b3ec070cd..4c4df4dc83352b09e5300c1273d0a6658a3e878a 100644 --- a/tests/test_issues_server.py +++ b/tests/test_issues_server.py @@ -27,9 +27,10 @@ import tempfile import time import caosdb as db -from caosdb import administration as admin import pytest -from caosdb.exceptions import TransactionError, HTTPClientError + +from caosdb import administration as admin +from caosdb.exceptions import (TransactionError, HTTPClientError) CURATOR_ROLE = "curator" @@ -1437,13 +1438,13 @@ See https://gitlab.indiscale.com/caosdb/src/caosdb-server/-/issues/106 @pytest.mark.xfail(reason="https://gitlab.com/caosdb/caosdb-server/-/issues/235") def test_235_long_name(): """Should give an appropriate error, not just unknown server/-/issues.""" - length = 256 + length = 10256 name = "N" * length rt1 = db.RecordType(name=name) try: rt1.insert() except Exception as exc: - assert type(Exception) is not db.HTTPServerError + assert type(exc) is not db.HTTPServerError # TODO more specific error should be asserted rt2 = db.RecordType(name="Short") @@ -1452,5 +1453,5 @@ def test_235_long_name(): try: rt2.update() except Exception as exc: - assert type(Exception) is not db.HTTPServerError + assert type(exc) is not db.HTTPServerError # TODO more specific error should be asserted