We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa68b12 commit bcdb94eCopy full SHA for bcdb94e
1 file changed
tests/test_neutral_template.py
@@ -344,9 +344,13 @@ def test_initialization_with_invalid_file(self):
344
345
template = NeutralTemplate(TEMPLATE_ERROR)
346
347
- with self.assertRaises(ValueError):
+ with self.assertRaises(RuntimeError) as context:
348
template.render()
349
350
+ error_message = str(context.exception)
351
+ self.assertIn("No such file or directory", error_message)
352
+ self.assertIn("os error 2", error_message)
353
+
354
def test_initialization_with_invalid_schema(self):
355
"""Test initialization fails with invalid JSON schema."""
356
0 commit comments