Skip to content

Commit

Permalink
ci: improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Jan 2, 2025
1 parent 203cdf2 commit bf20291
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/test_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,14 @@ def on_change_exec(a, **kwargs):
server.add_event(f"About to exit a={state.a}")

# Validate event
result = str(server)
expected = str(test_minimum_change_detection.__doc__)
result = [line.strip() for line in str(server).split("\n")]
expected = [
line.strip() for line in str(test_minimum_change_detection.__doc__).split("\n")
]

# Grab new scenario output
# print(expected)
# print("-"*60)
# print(result)

assert expected.strip() == result.strip()
assert expected == result

0 comments on commit bf20291

Please sign in to comment.