Skip to content

Commit

Permalink
Update test regex for varience in __repr__ implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
linkous8 committed May 8, 2024
1 parent f6a4b29 commit e898d36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion statesman_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def test_add_action(self, state: statesman.State) -> None:
assert state.actions == [action]

def test_add_action_invalid_type(self, state: statesman.State) -> None:
with pytest.raises(ValueError, match='cannot add state action with type "Types.after": must be "Types.entry" or "Types.exit"'):
with pytest.raises(ValueError, match='cannot add state action with type "(Types\.)?after": must be "(Types\.)?entry" or "(Types\.)?exit"'):
state.add_action(lambda: 1234, statesman.Action.Types.after)

@pytest.mark.parametrize(
Expand Down

0 comments on commit e898d36

Please sign in to comment.