MCPcopy
hub / github.com/NanmiCoder/MediaCrawler / test

Method test

test/test_mongodb_integration.py:90–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 15

get_clientMethod · 0.95
get_dbMethod · 0.95
save_or_updateMethod · 0.95
find_oneMethod · 0.95
find_manyMethod · 0.95
create_indexMethod · 0.95
get_collectionMethod · 0.95
store_contentMethod · 0.95
store_commentMethod · 0.95
store_creatorMethod · 0.95
store_contentMethod · 0.95
store_commentMethod · 0.95

Tested by

no test coverage detected