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

Method test_init

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

Source from the content-addressed store, hash-verified

134
135 @unittest.skipUnless(_HAVE_PYMONGOCRYPT, "pymongocrypt is not installed")
136 def test_init(self):
137 opts = AutoEncryptionOpts({}, "keyvault.datakeys")
138 self.assertEqual(opts._kms_providers, {})
139 self.assertEqual(opts._key_vault_namespace, "keyvault.datakeys")
140 self.assertEqual(opts._key_vault_client, None)
141 self.assertEqual(opts._schema_map, None)
142 self.assertEqual(opts._bypass_auto_encryption, False)
143 self.assertEqual(opts._mongocryptd_uri, "mongodb://localhost:27020")
144 self.assertEqual(opts._mongocryptd_bypass_spawn, False)
145 self.assertEqual(opts._mongocryptd_spawn_path, "mongocryptd")
146 self.assertEqual(opts._mongocryptd_spawn_args, ["--idleShutdownTimeoutSecs=60"])
147 self.assertEqual(opts._kms_tls_options, None)
148
149 @unittest.skipUnless(_HAVE_PYMONGOCRYPT, "pymongocrypt is not installed")
150 def test_init_spawn_args(self):

Callers

nothing calls this directly

Calls 1

AutoEncryptionOptsClass · 0.90

Tested by

no test coverage detected