Here are the examples of the python api tests.mocks.MockAsyncExecuteStep taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
3
Source : test_concurrent_transactions.py
with MIT License
from meadsteve
with MIT License
from meadsteve
async def test_steps_may_be_async():
step_1 = MockCountingStep()
step_2 = MockAsyncExecuteStep()
await run_concurrent_transaction([step_1, step_2], starting_state=0)
assert step_1.actions_taken == ["run execute: 0"]
assert step_2.actions_taken == ["run execute: 0"]
@pytest.mark.asyncio