Skip to content

Commit 6c36311

Browse files
author
Sergio García Prado
committed
ISSUE #?
* Minor change.
1 parent 8efd0c4 commit 6c36311

File tree

1 file changed

+3
-8
lines changed
  • packages/core/minos-microservice-saga/minos/saga

1 file changed

+3
-8
lines changed

packages/core/minos-microservice-saga/minos/saga/testing.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,18 +83,13 @@ class SagaExecutionRepositoryTestCase(MinosTestCase, ABC):
8383
def setUp(self) -> None:
8484
super().setUp()
8585
self.saga_execution_repository = self.build_saga_execution_repository()
86+
self.execution = SagaExecution.from_definition(_SAGA)
87+
self.another = SagaExecution.from_definition(_SAGA)
8688

8789
async def asyncSetUp(self) -> None:
8890
await super().asyncSetUp()
89-
9091
await self.saga_execution_repository.setup()
91-
92-
execution = SagaExecution.from_definition(_SAGA)
93-
await execution.execute(autocommit=False)
94-
95-
self.execution = execution
96-
97-
self.another = SagaExecution.from_definition(_SAGA)
92+
await self.execution.execute(autocommit=False)
9893

9994
async def asyncTearDown(self):
10095
await self.saga_execution_repository.destroy()

0 commit comments

Comments
 (0)