Skip to content
Snippets Groups Projects
Commit bc63638e authored by Alexander Schlemmer's avatar Alexander Schlemmer
Browse files

TST: completed failing test

parent 9c87f9ab
No related branches found
No related tags found
2 merge requests!53Release 0.1,!37F fix parent subst
Pipeline #28684 failed
...@@ -72,3 +72,12 @@ def test_substitutions_parents(crawler_2): ...@@ -72,3 +72,12 @@ def test_substitutions_parents(crawler_2):
# This is a test for: # This is a test for:
# https://gitlab.indiscale.com/caosdb/src/caosdb-crawler/-/issues/35 # https://gitlab.indiscale.com/caosdb/src/caosdb-crawler/-/issues/35
# ... testing whether variable substitutions can be used in parent declarations. # ... testing whether variable substitutions can be used in parent declarations.
subd = crawler_2.debug_tree[dircheckstr(
"File", "ExperimentalData", "220512_data.dat")]
# subd[0] <- generalStore
# subd[1] <- recordStore
parents = subd[1]["Experiment"].get_parents()
assert len(parents) == 2
assert parents[0].name == "Experiment"
assert parents[1].name == "Month_05"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment