()
| 88 | |
| 89 | def test_real_connection(self): |
| 90 | async def test(): |
| 91 | conn = MongoDBConnection() |
| 92 | client = await conn.get_client() |
| 93 | db = await conn.get_db() |
| 94 | |
| 95 | self.assertIsNotNone(client) |
| 96 | self.assertIsNotNone(db) |
| 97 | |
| 98 | result = await db.command("ping") |
| 99 | self.assertEqual(result.get("ok"), 1.0) |
| 100 | |
| 101 | asyncio.run(test()) |
| 102 |
nothing calls this directly
no test coverage detected