Skip to content
Snippets Groups Projects
Verified Commit 7db6120c authored by Daniel Hornung's avatar Daniel Hornung
Browse files

TEST: Appended to test.

parent f2e77cc3
Branches
Tags
No related merge requests found
Pipeline #42763 canceled
......@@ -69,13 +69,22 @@ def teardown_function(function):
@pytest.mark.xfail(reason="Entities with many, long, properties: "
"https://gitlab.com/linkahead/linkahead-pylib/-/issues/108")
def test_gitlab_com_108(self):
# create RT and one property
def test_gitlab_com_108():
"""Create RT and a list of properties, then insert and retrieve.
This is another instance of bugs caused by caosdb/src/caosdb-mysqlbackend#48
"""
cont = db.Container()
long = "Long" * 50
first_RT = db.RecordType(name=f"TestRecord_first")
first_RT = db.RecordType(name="TestRecord_first")
for index in range(20):
this_RT = db.RecordType(name=f"TestRecord_{long}_{index:02d}")
first_RT.add_property(this_RT)
cont.append(this_RT)
cont.append(first_RT)
cont.insert()
cont.retrieve()
# Incidentally, the following lines seem to trigger another, unrelated problem
tests = db.execute_query("FIND ENTITY test*", cache=False)
tests.delete()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment