diff --git a/tests/test_issues_pylib.py b/tests/test_issues_pylib.py index fdf76c99e055a282ce0ab6b3d1d1210165bb15ee..e389fe2d709cd36f33c22bf948c89188e76bc791 100644 --- a/tests/test_issues_pylib.py +++ b/tests/test_issues_pylib.py @@ -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()