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

Method test_auto_encrypt

test/test_encryption.py:365–372  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

363 encrypted_coll.insert_one({"unencodeable": object()})
364
365 def test_auto_encrypt(self):
366 # Configure the encrypted field via jsonSchema.
367 json_schema = json_data("custom", "schema.json")
368 create_with_schema(self.db.test, json_schema)
369 self.addCleanup(self.db.test.drop)
370
371 opts = AutoEncryptionOpts(KMS_PROVIDERS, "keyvault.datakeys")
372 self._test_auto_encrypt(opts)
373
374 def test_auto_encrypt_local_schema_map(self):
375 # Configure the encrypted field via the local schema_map option.

Callers

nothing calls this directly

Calls 5

_test_auto_encryptMethod · 0.95
AutoEncryptionOptsClass · 0.90
addCleanupMethod · 0.80
json_dataFunction · 0.70
create_with_schemaFunction · 0.70

Tested by

no test coverage detected