Skip to content
Snippets Groups Projects
Commit 66dc3255 authored by Florian Spreckelsen's avatar Florian Spreckelsen
Browse files

TST: Add necessary insert

parent 8ebd0715
No related branches found
No related tags found
3 merge requests!160STY: styling,!141FIX: Resolve referneces to existing entities correctly,!140New f fix merge
Pipeline #46303 failed
......@@ -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]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment