diff --git a/tests/test_issues_server.py b/tests/test_issues_server.py index 9ca60a1aa97a124198553f28f9a584fe5b577808..1698bfd3cf4f202d77c200ecb9301fe50f953f96 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()