File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
tests/integration/profiles Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 1919import tempfile
2020
2121from rocrate_validator import models
22+ from rocrate_validator .constants import DEFAULT_PROFILE_IDENTIFIER
2223from tests .ro_crates import ValidROC
2324from tests .shared import do_entity_test
2425import pytest
@@ -52,6 +53,12 @@ def test_valid_ro_crates_from_folder(valid_roc_path):
5253 True ,
5354 [],
5455 [],
56+ profile_identifier = (
57+ # ro-crate-1.1 can't be used for Five Safes crates as they conform to 1.2
58+ "five-safes-crate"
59+ if "five-safes-crate" in valid_roc_path .name
60+ else DEFAULT_PROFILE_IDENTIFIER
61+ ),
5562 metadata_only = True
5663 )
5764
@@ -72,6 +79,12 @@ def test_valid_ro_crates_from_metadata_dict(valid_roc_path):
7279 True ,
7380 [],
7481 [],
82+ profile_identifier = (
83+ # ro-crate-1.1 can't be used for Five Safes crates as they conform to 1.2
84+ "five-safes-crate"
85+ if "five-safes-crate" in valid_roc_path .name
86+ else DEFAULT_PROFILE_IDENTIFIER
87+ ),
7588 metadata_dict = metadata_dict ,
7689 metadata_only = True
7790 )
You can’t perform that action at this time.
0 commit comments