From 66dc3255352e3a1f2b9df24dff67d66713fc2490 Mon Sep 17 00:00:00 2001
From: Florian Spreckelsen <f.spreckelsen@inidscale.com>
Date: Tue, 23 Jan 2024 15:12:24 +0100
Subject: [PATCH] TST: Add necessary insert

---
 integrationtests/test_issues.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/integrationtests/test_issues.py b/integrationtests/test_issues.py
index 5736d1fe..1f9efaf8 100644
--- a/integrationtests/test_issues.py
+++ b/integrationtests/test_issues.py
@@ -355,6 +355,11 @@ Campaign:
     ds_parent.add_property(name="DOI", value="https://doi.org/10.1594/PANGAEA.882187")
     ds_parent.add_property(name="Dataset", datatype=db.LIST("Dataset"), value=ds_child)
 
+    # The two lowest references need to exist in DB
+    db.Container().extend([basis, campaign]).insert()
+    # redefine to trigger resolving
+    basis = db.Record(name="Poseidon").add_parent(name="Basis")
+    campaign = db.Record(name="POS386").add_parent(name="Campaign").add_property(name="Basis", value=basis)
     # multiples are necessary
     recs = [ds_parent, ds_child, event, event, ds_child, event, basis, campaign]
     
-- 
GitLab