MCPcopy
hub / github.com/redis/redis-py / r_acl_teardown

Function r_acl_teardown

tests/test_asyncio/test_credentials.py:57–69  ·  view source on GitHub ↗

A special fixture which removes the provided names from the database after use

(r: redis.Redis)

Source from the content-addressed store, hash-verified

55
56@pytest_asyncio.fixture()
57async def r_acl_teardown(r: redis.Redis):
58 """
59 A special fixture which removes the provided names from the database after use
60 """
61 usernames = []
62
63 def factory(username):
64 usernames.append(username)
65 return r
66
67 yield factory
68 for username in usernames:
69 await r.acl_deluser(username)
70
71
72@pytest_asyncio.fixture()

Calls 1

acl_deluserMethod · 0.80

Tested by

no test coverage detected