Skip to content

Commit bcdb94e

Browse files
author
Fran
committed
update tests
1 parent fa68b12 commit bcdb94e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/test_neutral_template.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,9 +344,13 @@ def test_initialization_with_invalid_file(self):
344344

345345
template = NeutralTemplate(TEMPLATE_ERROR)
346346

347-
with self.assertRaises(ValueError):
347+
with self.assertRaises(RuntimeError) as context:
348348
template.render()
349349

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+
350354
def test_initialization_with_invalid_schema(self):
351355
"""Test initialization fails with invalid JSON schema."""
352356

0 commit comments

Comments
 (0)