MCPcopy
hub / github.com/piccolo-orm/piccolo / _make_query

Method _make_query

tests/engine/test_pool.py:25–32  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

23 assert engine.pool is None
24
25 async def _make_query(self):
26 await Manager._meta.db.start_connection_pool()
27
28 await Manager(name="Bob").save().run()
29 response = await Manager.select().run()
30 self.assertIn("Bob", [i["name"] for i in response])
31
32 await Manager._meta.db.close_connection_pool()
33
34 async def _make_many_queries(self):
35 await Manager._meta.db.start_connection_pool()

Callers 1

test_queryMethod · 0.95

Calls 6

ManagerClass · 0.90
saveMethod · 0.80
selectMethod · 0.80
start_connection_poolMethod · 0.45
runMethod · 0.45
close_connection_poolMethod · 0.45

Tested by

no test coverage detected