()
| 81 | """Test concurrent transactions with single operation.""" |
| 82 | |
| 83 | async def create(): |
| 84 | async with in_transaction(): |
| 85 | await Tournament.create(name="Test") |
| 86 | |
| 87 | await asyncio.gather(*[create() for _ in range(100)]) |
| 88 | count = await Tournament.all().count() |
no test coverage detected
searching dependent graphs…