Skip to content

Commit bb657b9

Browse files
committed
add note about a warning logged during async tests
1 parent c08b477 commit bb657b9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/tests_async/test_cache_options.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ class TestDjangoValkeyOmitException:
8080
@pytest_asyncio.fixture
8181
async def conf_cache(self, settings: SettingsWrapper):
8282
caches_settings = copy.deepcopy(settings.CACHES)
83+
# NOTE: this files raises RuntimeWarning because `conn.close` was not awaited,
84+
# this is expected because django calls the signal manually during this test
85+
# to debug, put a `raise` in django.utils.connection.BaseConnectionHandler.close_all
8386
settings.CACHES = caches_settings
8487
return caches_settings
8588

0 commit comments

Comments
 (0)