Ejemplo n.º 1
0
 def test_execute_no_pipeline():
     pth = PipelineTransactionHandler()
     with pytest.raises(TransactionException):
         pth.execute()
Ejemplo n.º 2
0
 def test_execute():
     pipeline = ActionsPipelineMock()
     pth = PipelineTransactionHandler(pipeline)
     pth.execute()
     assert pipeline.do.called
     assert not pipeline.undo.called