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

Method asyncSetUp

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

Source from the content-addressed store, hash-verified

401class TestSCRAMSHA1(AsyncIntegrationTest):
402 @async_client_context.require_auth
403 async def asyncSetUp(self):
404 await super().asyncSetUp()
405 await async_client_context.create_user(
406 "pymongo_test", "user", "pass", roles=["userAdmin", "readWrite"]
407 )
408
409 async def asyncTearDown(self):
410 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