Skip to content

Commit 3a4a74d

Browse files
author
Ralf Grubenmann
committed
Adapts SHACL and tests to changes on master
1 parent 7537693 commit 3a4a74d

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

renku/data/shacl_shape.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,14 @@
560560
"closed": true,
561561
"targetClass": "prov:Activity",
562562
"property": [
563+
{
564+
"path": "schema:isPartOf",
565+
"sh:class": {
566+
"@id": "schema:Project"
567+
},
568+
"minCount": 1,
569+
"maxCount": 1
570+
},
563571
{
564572
"nodeKind": "sh:Literal",
565573
"path": "rdfs:comment",

tests/cli/test_log.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,12 @@ def test_dataset_log_strict(tmpdir, runner, project, client, format):
4747
assert 0 == result.exit_code
4848

4949
paths = []
50+
test_paths = []
5051
for i in range(3):
5152
new_file = tmpdir.join('file_{0}'.format(i))
5253
new_file.write(str(i))
5354
paths.append(str(new_file))
55+
test_paths.append(str(new_file.relto(tmpdir.join('..'))))
5456

5557
# add data
5658
result = runner.invoke(
@@ -64,4 +66,4 @@ def test_dataset_log_strict(tmpdir, runner, project, client, format):
6466
)
6567

6668
assert 0 == result.exit_code, result.output
67-
assert all(p in result.output for p in paths)
69+
assert all(p in result.output for p in test_paths)

0 commit comments

Comments
 (0)