DragonRollDev

Results 5 comments of DragonRollDev

After some more fiddling, I found a setup that works well for pytest-asyncio 0.26.0, the same setup doesn't work from pytest-asyncio 1.0.0 onwards. If everything that is async runs on...

Found relevant discussions around this in here: https://github.com/pytest-dev/pytest-asyncio/issues/1177

No luck, ``` AssertionError: {'error': 'Event loop is closed', 'method': 'POST', 'path': '/api/users/register', 'stack': ['Traceback (most recent call last): E ', ' File "\\.venv\\Lib\\site-packages\\valkey\\asyncio\\connection.py", line 514, in send_packed_command E await...

That step is done already: ``` [tool.pytest.ini_options] asyncio_default_fixture_loop_scope = "session" asyncio_mode="auto" ``` fixtures just for demonstration: ``` @pytest.fixture(scope="session") async def sanic_app(valkey_fixture): """Return the Sanic app instance.""" from social_backend.service_core import app...

The tests themselves aren't, nor the application directly, could be SqlAlchemy though. Once I'm back, I'm gonna have an attempt on removing the SqlAlchemy completely and see how it goes