Skip to content

Commit a0e72ad

Browse files
committed
allow do_entity_test to accept arbitrary settings
1 parent f520d72 commit a0e72ad

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/shared.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,12 @@ def do_entity_test(
110110
rocrate_relative_root_path: Optional[str] = None,
111111
metadata_only: bool = False,
112112
metadata_dict: Optional[dict] = None,
113+
**kwargs,
113114
):
114115
"""
115-
Shared function to test a RO-Crate entity
116+
Shared function to test a RO-Crate entity.
117+
118+
Additional keyword arguments (kwargs) are passed along to initialise ValidationSettings.
116119
"""
117120
assert not (
118121
rocrate_entity_patch and rocrate_entity_mod_sparql
@@ -186,7 +189,8 @@ def do_entity_test(
186189
"rocrate_relative_root_path": rocrate_relative_root_path,
187190
"metadata_only": metadata_only,
188191
"metadata_dict": metadata_dict,
189-
}
192+
},
193+
**kwargs,
190194
)
191195
)
192196
logger.debug("Expected validation result: %s", expected_validation_result)

0 commit comments

Comments
 (0)