From a58233f5a9abe7ae6a0108dfd88498561484c243 Mon Sep 17 00:00:00 2001 From: Timm Fitschen <t.fitschen@indiscale.com> Date: Thu, 24 Nov 2022 11:24:11 +0100 Subject: [PATCH] TST: add failing test for https://gitlab.com/caosdb/caosdb-server/-/issues/177 --- tests/test_issues_server.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/test_issues_server.py b/tests/test_issues_server.py index 9ca60a1..1698bfd 100644 --- a/tests/test_issues_server.py +++ b/tests/test_issues_server.py @@ -1,9 +1,10 @@ # -*- coding: utf-8 -*- # This file is a part of the CaosDB Project. # -# Copyright (c) 2022 IndiScale GmbH <info@indiscale.com> +# Copyright (c) 2020 - 2022 IndiScale GmbH <info@indiscale.com> # Copyright (c) 2022 Daniel Hornung <d.hornung@indiscale.com> # Copyright (c) 2020 Florian Spreckelsen <f.spreckelsen@indiscale.com> +# Copyright (c) 2021 - 2022 Timm Fitschen <t.fitschen@indiscale.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as @@ -1115,3 +1116,12 @@ def test_142(): assert cm.value.status == 400 assert cm.value.msg.startswith( "The user name does not comply with the current policies for user names") + + +@pytest.mark.xfail(reason="Fix https://gitlab.com/caosdb/caosdb-server/-/issues/177") +def test_177(): + db.RecordType("TestRT").insert() + db.RecordType("TestRT").insert(unique=False) + db.Property("TestProp", datatype=db.TEXT).insert() + + db.RecordType("TestSubRT").add_property("TestProp").add_parent("TestRT").insert() -- GitLab