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

Function test_postgres_search

tests/test_queryset.py:763–767  ·  view source on GitHub ↗
(db)

Source from the content-addressed store, hash-verified

761@requireCapability(dialect="postgres")
762@pytest.mark.asyncio
763async def test_postgres_search(db):
764 name = "hello world"
765 await Tournament.create(name=name)
766 ret = await Tournament.filter(name__search="hello").first()
767 assert ret.name == name
768
769
770@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 3

createMethod · 0.45
firstMethod · 0.45
filterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…