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

TST: Remove lengthy strings from inttest

parent b20c6764
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 #46305 failed
......@@ -224,8 +224,6 @@ Dataset:
recommended_properties:
Title:
datatype: TEXT
Abstract:
datatype: TEXT
Event:
Published Dataset:
inherit_from_suggested:
......@@ -271,71 +269,6 @@ Campaign:
crawler = Crawler(identifiableAdapter=ident)
xmls = ["""<Record>
<Parent name="Published Dataset"/>
<Property name="Title" importance="FIX" flag="inheritance:FIX">Chemical analysis from sediment cores in the area of a landslide scar close to the airport of Nice</Property>
<Property name="Abstract" importance="FIX" flag="inheritance:FIX">Submarine groundwater discharge (SGD), the flow of fresh and saline groundwater from the seabed into the coastal ocean, has been intensively investigated in the recent years. This research has usually been restricted to shallow water and intertidal areas, whereas knowledge about groundwater seepage in deeper water is mainly limited to point sources from karstic aquifers. In this study we observed submarine groundwater seepage and a subterranean estuary in sediments at water depths of 20-44 m located within the Ligurian Margin, western Mediterranean Sea. Here, a catastrophic submarine landslide occurred near the Nice airport (French Ligurian coast) in the fall of 1979 after a period of heavy rainfall. During two research cruises, gravity cores were recovered in and around the area of the landslide scar. Pore water samples collected from sediment cores indicated sediments containing freshwater within the landslide scar. Pore water profiles of selected ions, such as chloride, ammonium, manganese, sulfate and barium were used to assess transport and reaction processes within the sediment. A 1-dimensional transport model indicates in most cores upward pore water velocities of 2.3-8.8 cm/yr. This study shows that submarine groundwater seepage along the French Mediterranean coastline can occur at water depths reaching 44 m.</Property>
<Property name="DOI" importance="FIX" flag="inheritance:FIX">https://doi.org/10.1594/PANGAEA.882187</Property>
<Property name="Dataset" datatype="LIST&lt;Dataset&gt;" importance="FIX" flag="inheritance:FIX">
<Value>&lt;Record&gt;
&lt;Parent name="Published Dataset"/&gt;
&lt;Property name="Title" importance="FIX" flag="inheritance:FIX"&gt;(Appendix 3) Different saturation index analysis from sediment cores in the area of a landslide scar close to the airport of Nice&lt;/Property&gt;
&lt;Property name="Abstract" importance="FIX" flag="inheritance:FIX"/&gt;
&lt;Property name="DOI" importance="FIX" flag="inheritance:FIX"&gt;https://doi.org/10.1594/PANGAEA.882184&lt;/Property&gt;
&lt;Property name="Event" datatype="LIST&amp;lt;Event&amp;gt;" importance="FIX" flag="inheritance:FIX"&gt;
&lt;Value&gt;GeoB13952&lt;/Value&gt;
&lt;/Property&gt;
&lt;/Record&gt;
</Value>
</Property>
</Record>""", """<Record>
<Parent name="Published Dataset"/>
<Property name="Title" importance="FIX" flag="inheritance:FIX">(Appendix 3) Different saturation index analysis from sediment cores in the area of a landslide scar close to the airport of Nice</Property>
<Property name="Abstract" importance="FIX" flag="inheritance:FIX"/>
<Property name="DOI" importance="FIX" flag="inheritance:FIX">https://doi.org/10.1594/PANGAEA.882184</Property>
<Property name="Event" datatype="LIST&lt;Event&gt;" importance="FIX" flag="inheritance:FIX">
<Value>GeoB13952</Value>
</Property>
</Record>""", """<Record name="GeoB13952">
<Parent name="Event"/>
<Property name="label" importance="FIX" flag="inheritance:FIX">GeoB13952</Property>
<Property name="Start datetime" importance="FIX" flag="inheritance:FIX">2009-07-03T07:52:36</Property>
<Property name="longitude" importance="FIX" flag="inheritance:FIX">7.22225</Property>
<Property name="latitude" importance="FIX" flag="inheritance:FIX">43.6438</Property>
<Property name="Basis" importance="FIX" flag="inheritance:FIX">Poseidon</Property>
<Property name="Campaign" importance="FIX" flag="inheritance:FIX">POS386</Property>
</Record>""", """<Record name="GeoB13952">
<Parent name="Event"/>
<Property name="label" importance="FIX" flag="inheritance:FIX">GeoB13952</Property>
<Property name="Start datetime" importance="FIX" flag="inheritance:FIX">2009-07-03T07:52:36</Property>
<Property name="longitude" importance="FIX" flag="inheritance:FIX">7.22225</Property>
<Property name="latitude" importance="FIX" flag="inheritance:FIX">43.6438</Property>
<Property name="Basis" importance="FIX" flag="inheritance:FIX">Poseidon</Property>
<Property name="Campaign" importance="FIX" flag="inheritance:FIX">POS386</Property>
</Record>""", """<Record>
<Parent name="Published Dataset"/>
<Property name="Title" importance="FIX" flag="inheritance:FIX">(Appendix 3) Different saturation index analysis from sediment cores in the area of a landslide scar close to the airport of Nice</Property>
<Property name="Abstract" importance="FIX" flag="inheritance:FIX"/>
<Property name="DOI" importance="FIX" flag="inheritance:FIX">https://doi.org/10.1594/PANGAEA.882184</Property>
<Property name="Event" datatype="LIST&lt;Event&gt;" importance="FIX" flag="inheritance:FIX">
<Value>GeoB13952</Value>
</Property>
</Record>""", """<Record name="GeoB13952">
<Parent name="Event"/>
<Property name="label" importance="FIX" flag="inheritance:FIX">GeoB13952</Property>
<Property name="Start datetime" importance="FIX" flag="inheritance:FIX">2009-07-03T07:52:36</Property>
<Property name="longitude" importance="FIX" flag="inheritance:FIX">7.22225</Property>
<Property name="latitude" importance="FIX" flag="inheritance:FIX">43.6438</Property>
<Property name="Basis" importance="FIX" flag="inheritance:FIX">Poseidon</Property>
<Property name="Campaign" importance="FIX" flag="inheritance:FIX">POS386</Property>
</Record>""", """<Record name="Poseidon">
<Parent name="Basis"/>
</Record>""", """<Record name="POS386">
<Parent name="Campaign"/>
<Property name="Basis" importance="FIX" flag="inheritance:FIX">Poseidon</Property>
</Record>"""
]
# recs = db.Container().extend([db.common.models.parse_xml(xml_rec) for xml_rec in xmls])
basis = db.Record(name="Poseidon").add_parent(name="Basis")
campaign = db.Record(name="POS386").add_parent(name="Campaign").add_property(name="Basis", value=basis)
event = db.Record(name="GeoB13952").add_parent(name="Event").add_property(name="label", value="GeoB13952")
......@@ -345,13 +278,11 @@ Campaign:
event.add_property(name="Basis", value=basis)
event.add_property(name="Campaign", value=campaign)
ds_child = db.Record().add_parent(name="Published Dataset")
ds_child.add_property(name="Title", value="(Appendix 3) Different saturation index analysis from sediment cores in the area of a landslide scar close to the airport of Nice")
ds_child.add_property(name="Abstract")
ds_child.add_property(name="Title", value="Child title")
ds_child.add_property(name="DOI", value="https://doi.org/10.1594/PANGAEA.882184")
ds_child.add_property(name="Event", value=[event], datatype=db.LIST("Event"))
ds_parent = db.Record().add_parent(name="Published Dataset")
ds_parent.add_property(name="Title", value="Chemical analysis from sediment cores in the area of a landslide scar close to the airport of Nice")
ds_parent.add_property(name="Abstract", value="Submarine groundwater discharge (SGD), the flow of fresh and saline groundwater from the seabed into the coastal ocean, has been intensively investigated in the recent years. This research has usually been restricted to shallow water and intertidal areas, whereas knowledge about groundwater seepage in deeper water is mainly limited to point sources from karstic aquifers. In this study we observed submarine groundwater seepage and a subterranean estuary in sediments at water depths of 20-44 m located within the Ligurian Margin, western Mediterranean Sea. Here, a catastrophic submarine landslide occurred near the Nice airport (French Ligurian coast) in the fall of 1979 after a period of heavy rainfall. During two research cruises, gravity cores were recovered in and around the area of the landslide scar. Pore water samples collected from sediment cores indicated sediments containing freshwater within the landslide scar. Pore water profiles of selected ions, such as chloride, ammonium, manganese, sulfate and barium were used to assess transport and reaction processes within the sediment. A 1-dimensional transport model indicates in most cores upward pore water velocities of 2.3-8.8 cm/yr. This study shows that submarine groundwater seepage along the French Mediterranean coastline can occur at water depths reaching 44 m.")
ds_parent.add_property(name="Title", value="Parent title")
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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment