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

Method setUp

test/test_auth.py:672–675  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

670class TestAuthURIOptions(IntegrationTest):
671 @client_context.require_auth
672 def setUp(self):
673 super().setUp()
674 client_context.create_user("admin", "admin", "pass")
675 client_context.create_user("pymongo_test", "user", "pass", ["userAdmin", "readWrite"])
676
677 def tearDown(self):
678 client_context.drop_user("pymongo_test", "user")

Callers

nothing calls this directly

Calls 2

setUpMethod · 0.45
create_userMethod · 0.45

Tested by

no test coverage detected