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

Method asyncSetUp

test/asynchronous/test_auth.py:676–681  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

674class TestAuthURIOptions(AsyncIntegrationTest):
675 @async_client_context.require_auth
676 async def asyncSetUp(self):
677 await super().asyncSetUp()
678 await async_client_context.create_user("admin", "admin", "pass")
679 await async_client_context.create_user(
680 "pymongo_test", "user", "pass", ["userAdmin", "readWrite"]
681 )
682
683 async def asyncTearDown(self):
684 await async_client_context.drop_user("pymongo_test", "user")

Callers

nothing calls this directly

Calls 2

asyncSetUpMethod · 0.45
create_userMethod · 0.45

Tested by

no test coverage detected