MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / test_query_user

Function test_query_user

examples/pytest/test_example.py:14–17  ·  view source on GitHub ↗
(db)

Source from the content-addressed store, hash-verified

12
13@pytest.mark.asyncio
14async def test_query_user(db):
15 await User.create(name="Bob")
16 users = await User.filter(name="Bob")
17 assert len(users) == 1
18
19
20@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 2

createMethod · 0.45
filterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…