@@ -103,14 +103,10 @@ def do_entity_test(
103103 profile_identifier : str = DEFAULT_PROFILE_IDENTIFIER ,
104104 rocrate_entity_patch : Optional [dict ] = None ,
105105 rocrate_entity_mod_sparql : Optional [str ] = None ,
106- skip_checks : Optional [list [str ]] = (),
107- ** kwargs
106+ skip_checks : Optional [list [str ]] = ()
108107):
109108 """
110- Shared function to test a RO-Crate entity.
111-
112- Additional keyword arguments (kwargs) are passed through to ValidationSettings,
113- allowing individual tests to tweak settings as needed.
109+ Shared function to test a RO-Crate entity
114110 """
115111 assert not (rocrate_entity_patch and rocrate_entity_mod_sparql ), \
116112 "Cannot use rocrate_entity_patch and rocrate_entity_mod_sparql together"
@@ -172,18 +168,14 @@ def do_entity_test(
172168 abort_on_first = abort_on_first
173169
174170 # validate RO-Crate
175- result : models .ValidationResult = services .validate (
176- models .ValidationSettings (
177- ** {
178- "rocrate_uri" : rocrate_path ,
179- "requirement_severity" : requirement_severity ,
180- "abort_on_first" : abort_on_first ,
181- "profile_identifier" : profile_identifier ,
182- "skip_checks" : skip_checks ,
183- },
184- ** kwargs ,
185- )
186- )
171+ result : models .ValidationResult = \
172+ services .validate (models .ValidationSettings (** {
173+ "rocrate_uri" : rocrate_path ,
174+ "requirement_severity" : requirement_severity ,
175+ "abort_on_first" : abort_on_first ,
176+ "profile_identifier" : profile_identifier ,
177+ "skip_checks" : skip_checks
178+ }))
187179 logger .debug ("Expected validation result: %s" , expected_validation_result )
188180
189181 assert result .context is not None , "Validation context should not be None"
0 commit comments