RuntimeError: Event loop is closed when using redis.asyncio with pytest-asyncio
I am trying to write tests for an asyncio-based Python app that uses Redis. I reproduced the Python code from the official Redis as a document database quick start guide and turned it into tests: import pytest from redis.asyncio import…