File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed
tests/case_utils/case_validate Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -86,10 +86,20 @@ def main() -> None:
86
86
action = "store_true" ,
87
87
help = "(As with pyshacl CLI) Abort on first invalid data." ,
88
88
)
89
+ parser .add_argument (
90
+ "--allow-info" ,
91
+ "--allow-infos" ,
92
+ dest = "allow_infos" ,
93
+ action = "store_true" ,
94
+ default = False ,
95
+ help = "(As with pyshacl CLI) Shapes marked with severity of Info will not cause result to be invalid." ,
96
+ )
89
97
parser .add_argument (
90
98
"-w" ,
99
+ "--allow-warning" ,
91
100
"--allow-warnings" ,
92
101
action = "store_true" ,
102
+ dest = "allow_warnings" ,
93
103
help = "(As with pyshacl CLI) Shapes marked with severity of Warning or Info will not cause result to be invalid." ,
94
104
)
95
105
parser .add_argument (
@@ -161,6 +171,7 @@ def main() -> None:
161
171
ont_graph = ontology_graph ,
162
172
inference = args .inference ,
163
173
abort_on_first = args .abort ,
174
+ allow_infos = True if args .allow_infos else False ,
164
175
allow_warnings = True if args .allow_warnings else False ,
165
176
debug = True if args .debug else False ,
166
177
do_owl_imports = True if args .imports else False ,
Original file line number Diff line number Diff line change 48
48
rm -f __$@ _$@
49
49
source $(tests_srcdir)/venv/bin/activate \
50
50
&& case_validate \
51
- --allow-warnings \
51
+ --allow-infos \
52
52
--debug \
53
53
--format turtle \
54
54
--output __$@ \
Original file line number Diff line number Diff line change 76
76
$(top_srcdir)/case_utils/ontology/__init__.py
77
77
source $(tests_srcdir)/venv/bin/activate \
78
78
&& case_validate \
79
- --allow-warnings \
79
+ --allow-infos \
80
80
--debug \
81
81
--format turtle \
82
82
$< \
You can’t perform that action at this time.
0 commit comments