A special fixture which removes the provided names from the database after use
(r: redis.Redis)
| 55 | |
| 56 | @pytest_asyncio.fixture() |
| 57 | async 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() |
no test coverage detected