(
redis_strategy: RedisStrategy[UserModel, IDType], redis: RedisMock, user
)
| 102 | @pytest.mark.authentication |
| 103 | @pytest.mark.asyncio |
| 104 | async def test_write_token( |
| 105 | redis_strategy: RedisStrategy[UserModel, IDType], redis: RedisMock, user |
| 106 | ): |
| 107 | token = await redis_strategy.write_token(user) |
| 108 | |
| 109 | value = await redis.get(f"{redis_strategy.key_prefix}{token}") |
| 110 | assert value == str(user.id) |
| 111 | |
| 112 | |
| 113 | @pytest.mark.authentication |
nothing calls this directly
no test coverage detected
searching dependent graphs…