MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / test_database

Method test_database

test/test_session.py:360–371  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

358 self._test_ops(client, *ops)
359
360 def test_database(self):
361 client = self.client
362 db = client.pymongo_test
363 ops: list = [
364 (db.command, ["ping"], {}),
365 (db.create_collection, ["collection"], {}),
366 (db.list_collection_names, [], {}),
367 (db.validate_collection, ["collection"], {}),
368 (db.drop_collection, ["collection"], {}),
369 (db.dereference, [DBRef("collection", 1)], {}),
370 ]
371 self._test_ops(client, *ops)
372
373 @staticmethod
374 def collection_write_ops(coll):

Callers

nothing calls this directly

Calls 2

_test_opsMethod · 0.95
DBRefClass · 0.90

Tested by

no test coverage detected