From 5f73baea2ee1c1a7283641cd7b74fce2d0978ace Mon Sep 17 00:00:00 2001 From: Alexander Schlemmer <a.schlemmer@indiscale.com> Date: Thu, 2 Jan 2025 13:22:34 +0100 Subject: [PATCH] TST: added test that bidirectional reference was inserted correctly --- integrationtests/test_issues.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/integrationtests/test_issues.py b/integrationtests/test_issues.py index 8357388d..0506fa4d 100644 --- a/integrationtests/test_issues.py +++ b/integrationtests/test_issues.py @@ -383,6 +383,14 @@ Block: crawler = Crawler(identifiableAdapter=ident) crawler.synchronize(crawled_data=records) + exp_res = db.execute_query("FIND Experiment") + assert len(exp_res) == 1 + exp_block = db.execute_query("FIND Block") + assert len(exp_block) == 1 + + assert exp_res[0].get_property("Block").value == exp_block[0].id + assert exp_block[0].get_property("Experiment").value == exp_res[0].id + def test_issue_14(clear_database): """ -- GitLab