Skip to content

Commit

Permalink
tests/test_eval: try fixing tests
Browse files Browse the repository at this point in the history
Remove newline and `startswith` that effectively depend on timing.
  • Loading branch information
Ma27 committed Feb 7, 2025
1 parent abea976 commit 13b6da5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,7 @@ def test_constituents_error() -> None:
aggregate = results[1]
assert aggregate["attr"] == "aggregate"
assert "namedConstituents" not in aggregate
assert "\ndoesntexist: does not exist\n" in aggregate["error"]
assert aggregate["error"].startswith("doesnteval: error:")
assert "doesntexist: does not exist\n" in aggregate["error"]
assert "constituents" in aggregate


Expand Down

0 comments on commit 13b6da5

Please sign in to comment.