Skip to content

Commit 71ddc7a

Browse files
committed
use caplog_level for validation in testing framework
1 parent 1e4a516 commit 71ddc7a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pynxtools/testing/nexus_conversion.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ def convert_to_nexus(
165165
assert test_output == []
166166

167167
# Validate created file using the validate_nexus functionality
168-
validate(self.created_nexus, ignore_undocumented=ignore_undocumented)
168+
with self.caplog.at_level(caplog_level):
169+
validate(self.created_nexus, ignore_undocumented=ignore_undocumented)
169170

170171
if NOMAD_AVAILABLE:
171172
kwargs = dict(

0 commit comments

Comments
 (0)