Created
June 19, 2019 19:56
-
-
Save briggleman/1071d068c08c994d03e82bc606eb6261 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@pytest.fixture(autouse=True) | |
def redis(occasion): | |
async def get(key): | |
# dictionary containing compressed data | |
return occasion | |
# mocked main implementation of sanic_redis_ext.RedisExtension | |
with mock.patch("aioredis.Redis.get") as mocked: | |
mocked.side_effect = get | |
yield mocked |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment