Skip to content

Commit ce7425e

Browse files
committed
fix(tests): update invalid transition test to use correct invalid state
1 parent 40907ca commit ce7425e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/test_core.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ def test_invalid_transition_raises(self):
116116
transitions=AppState.get_transitions(),
117117
)
118118
with pytest.raises(ValueError):
119-
sm.transition_to(AppState.READY) # Can't go CLOSED -> READY
119+
sm.transition_to(
120+
AppState.CLOSED
121+
) # Can't self-transition explicitly unless in list
120122

121123

122124
class TestPymordialScreen:

0 commit comments

Comments
 (0)