()
| 64 | """Test concurrent transactions with multiple operations.""" |
| 65 | |
| 66 | async def create_in_transaction(): |
| 67 | async with in_transaction(): |
| 68 | await asyncio.gather(*[Tournament.create(name="Test") for _ in range(100)]) |
| 69 | |
| 70 | await asyncio.gather(*[create_in_transaction() for _ in range(10)]) |
| 71 | count = await Tournament.all().count() |
no test coverage detected
searching dependent graphs…