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

TST: fixed test for description

parent fcddbe7e
No related branches found
No related tags found
2 merge requests!217TST: Make NamedTemporaryFiles Windows-compatible,!215Fix issues in rocrate support
Pipeline #60823 failed
......@@ -26,11 +26,18 @@ DataDir:
"@id": records-example/$
name: (?P<name>.*)
keywords: (?P<keywords>.*)
description: (?P<description>.*)
dateModified: (?P<dateModified>.*)
records:
Dataset:
name: $name
keywords: $keywords
description: $description
dateModified: $dateModified
subtree:
Description:
type: ROCrateEntity
match_type: TextObject
match_properties:
text: (?P<description>.*)
records:
Dataset:
description: $description
......@@ -213,12 +213,6 @@ def test_scanner():
assert rlist[0].get_property("dateModified").value == "2024-08-21T11:43:17.626965+00:00"
@pytest.mark.xfail(
reason="The description is no longer a simple string, but a reference to another record."
"The rocrate converter will be able to dereference this as soon as this feature is implemented:"
"https://gitlab.indiscale.com/caosdb/src/caosdb-crawler/-/issues/191"
"This test might need changes in the yaml definition."
)
def test_description_reference():
rlist = scanner.scan_directory(os.path.join(UNITTESTDIR, "eln_files/"),
os.path.join(UNITTESTDIR, "eln_cfood.yaml"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment