Skip to content
Snippets Groups Projects
Verified Commit f17eb65d authored by Daniel Hornung's avatar Daniel Hornung
Browse files

TEST: xfail: yaml parser inherit prop > prop

parent 6fcf533d
No related branches found
No related tags found
2 merge requests!89ENH: JsonSchemaExporter accepts do_not_create parameter.,!88jsex / yaml parser
Pipeline #44090 failed
......@@ -19,7 +19,7 @@
import unittest
from datetime import date
from tempfile import NamedTemporaryFile
from pytest import deprecated_call, raises
from pytest import deprecated_call, raises, mark
import caosdb as db
from caosadvancedtools.models.parser import (TwiceDefinedException,
......@@ -577,3 +577,19 @@ prop1:
with raises(YamlDefinitionError,
match=r"Parents must be a list but is given as string: prop1 > prop2"):
parse_model_from_string(model_string)
@mark.xfail("Issue is https://gitlab.com/linkahead/linkahead-advanced-user-tools/-/issues/57")
def test_inherit_properties():
# TODO Is not even specified yet.
model_string = """
prop1:
datatype: DOUBLE
prop2:
# role: Property
inherit_from_obligatory:
- prop1
"""
model = parse_model_from_string(model_string)
prop2 = model["prop2"]
assert prop2.role == "Property"
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