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

Method test_fork

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

Source from the content-addressed store, hash-verified

397 )
398 @client_context.require_sync
399 def test_fork(self):
400 self.skipTest("Test is flaky, PYTHON-4738")
401 opts = AutoEncryptionOpts(KMS_PROVIDERS, "keyvault.datakeys")
402 client = self.rs_or_single_client(auto_encryption_opts=opts)
403
404 def target():
405 with warnings.catch_warnings():
406 warnings.simplefilter("ignore")
407 client.admin.command("ping")
408
409 with self.fork(target):
410 target()
411
412
413class TestEncryptedBulkWrite(BulkTestBase, EncryptionIntegrationTest):

Callers

nothing calls this directly

Calls 3

AutoEncryptionOptsClass · 0.90
rs_or_single_clientMethod · 0.80
forkMethod · 0.45

Tested by

no test coverage detected