From 385d88132a82a0d62e21e2f96c7d8ec7753e1beb Mon Sep 17 00:00:00 2001 From: Daniel <d.hornung@indiscale.com> Date: Fri, 29 Sep 2023 16:53:32 +0200 Subject: [PATCH] FIX: Test x-fails again now. --- tests/test_issues_server.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/test_issues_server.py b/tests/test_issues_server.py index c700392..4c4df4d 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 -- GitLab