Skip to content

Commit

Permalink
Assert that error contains invalid character, line# and its content
Browse files Browse the repository at this point in the history
  • Loading branch information
Yngve S. Kristiansen committed Jul 19, 2023
1 parent f04737f commit d23fc12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_config_parsing/test_new_observations_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def test_parse():
def test_that_unexpected_character_gives_observation_config_error():
with pytest.raises(
ObservationConfigError,
match="Observation parsing failed: Did not expect character: i",
match="Observation parsing failed: Did not expect character:"
" i \(on line 1: include a;\)",
):
_parse_content(content="include a;", filename="")

0 comments on commit d23fc12

Please sign in to comment.