Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tortoise/tortoise-orm
/ test_isolation
Function
test_isolation
examples/pytest/test_example.py:21–23 ·
view source on GitHub ↗
(db)
Source
from the content-addressed store, hash-verified
19
20
@pytest.mark.asyncio
21
async
def
test_isolation(db):
22
count = await User.all().count()
23
assert count == 0,
"Database should be empty at test start"
Callers
nothing calls this directly
Calls
2
count
Method · 0.80
all
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…