File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1414from django_valkey .async_cache .cache import AsyncValkeyCache
1515from django_valkey .async_cache .client import AsyncHerdClient , AsyncDefaultClient
1616
17-
1817pytestmark = pytest .mark .anyio
1918
2019methods_with_no_parameters = {"clear" , "close" }
7776}
7877
7978
79+ # TODO: when django adjusts the signal, remove this decorator (and the ones below)
80+ @pytest .mark .filterwarnings ("ignore:coroutine 'AsyncBackendCommands.close'" )
8081class TestDjangoValkeyOmitException :
8182 @pytest .fixture
8283 async def conf_cache (self , settings : SettingsWrapper ):
@@ -231,6 +232,7 @@ async def with_prefix_cache() -> Iterable[AsyncValkeyCache]:
231232 await with_prefix .clear ()
232233
233234
235+ @pytest .mark .filterwarnings ("ignore:coroutine 'AsyncBackendCommands.close'" )
234236class TestDjangoValkeyCacheEscapePrefix :
235237 async def test_delete_pattern (
236238 self , key_prefix_cache : AsyncValkeyCache , with_prefix_cache : AsyncValkeyCache
@@ -261,6 +263,7 @@ async def test_keys(
261263 assert "b" not in keys
262264
263265
266+ @pytest .mark .filterwarnings ("ignore:coroutine 'AsyncBackendCommands.close'" )
264267async def test_custom_key_function (cache : AsyncValkeyCache , settings : SettingsWrapper ):
265268 caches_setting = copy .deepcopy (settings .CACHES )
266269 caches_setting ["default" ]["KEY_FUNCTION" ] = "tests.test_cache_options.make_key"
You can’t perform that action at this time.
0 commit comments