MCPcopy Create free account
hub / github.com/ormar-orm/ormar / test_first

Function test_first

benchmarks/test_benchmark_get.py:85–91  ·  view source on GitHub ↗
(aio_benchmark, num_models: int, authors_in_db: list[Author])

Source from the content-addressed store, hash-verified

83
84@pytest.mark.parametrize("num_models", [250, 500, 1000])
85async def test_first(aio_benchmark, num_models: int, authors_in_db: list[Author]):
86 @aio_benchmark
87 async def first():
88 return await Author.objects.first()
89
90 author = first()
91 assert author == authors_in_db[0]
92
93
94@pytest.mark.parametrize("num_models", [250, 500, 1000])

Callers

nothing calls this directly

Calls 1

firstFunction · 0.85

Tested by

no test coverage detected