Commits

Ian George committed 9932224

Fixing tests and removing pdb call

Comments (0)

Files changed (1)

statemachine/tests.py

 
         testmachine2 = TestStateMachine(field1=100, field2="LALALALA")
         testmachine2.save(None)
+        testmachine.status.states["step2"].entry_action = cancel_change
         testmachine2.status.change("step1b")
         testmachine2.status.change("step2")
 
     def test_redirect_action(self):
         def redirect_change(from_state):
             if from_state.name == "step1c":
-                import ipdb; ipdb.set_trace()
                 raise fsm.FSM_RedirectTransition(testmachine.status.states["end"])
 
         testmachine = TestStateMachine(field1=100, field2="LALALALA")