(self)
| 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() |
no test coverage detected