Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-advanced-user-tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-advanced-user-tools
Commits
f17eb65d
Verified
Commit
f17eb65d
authored
1 year ago
by
Daniel Hornung
Browse files
Options
Downloads
Patches
Plain Diff
TEST: xfail: yaml parser inherit prop > prop
See also
https://gitlab.com/linkahead/linkahead-advanced-user-tools/-/issues/57
parent
6fcf533d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!89
ENH: JsonSchemaExporter accepts do_not_create parameter.
,
!88
jsex / yaml parser
Pipeline
#44090
failed
1 year ago
Stage: setup
Stage: cert
Stage: style
Stage: unittest
Stage: integrationtest
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
unittests/test_yaml_model_parser.py
+17
-1
17 additions, 1 deletion
unittests/test_yaml_model_parser.py
with
17 additions
and
1 deletion
unittests/test_yaml_model_parser.py
+
17
−
1
View file @
f17eb65d
...
...
@@ -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
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment