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 14
14
from django_valkey .async_cache .cache import AsyncValkeyCache
15
15
from django_valkey .async_cache .client import AsyncHerdClient , AsyncDefaultClient
16
16
17
-
18
17
pytestmark = pytest .mark .anyio
19
18
20
19
methods_with_no_parameters = {"clear" , "close" }
77
76
}
78
77
79
78
79
+ # TODO: when django adjusts the signal, remove this decorator (and the ones below)
80
+ @pytest .mark .filterwarnings ("ignore:coroutine 'AsyncBackendCommands.close'" )
80
81
class TestDjangoValkeyOmitException :
81
82
@pytest .fixture
82
83
async def conf_cache (self , settings : SettingsWrapper ):
@@ -231,6 +232,7 @@ async def with_prefix_cache() -> Iterable[AsyncValkeyCache]:
231
232
await with_prefix .clear ()
232
233
233
234
235
+ @pytest .mark .filterwarnings ("ignore:coroutine 'AsyncBackendCommands.close'" )
234
236
class TestDjangoValkeyCacheEscapePrefix :
235
237
async def test_delete_pattern (
236
238
self , key_prefix_cache : AsyncValkeyCache , with_prefix_cache : AsyncValkeyCache
@@ -261,6 +263,7 @@ async def test_keys(
261
263
assert "b" not in keys
262
264
263
265
266
+ @pytest .mark .filterwarnings ("ignore:coroutine 'AsyncBackendCommands.close'" )
264
267
async def test_custom_key_function (cache : AsyncValkeyCache , settings : SettingsWrapper ):
265
268
caches_setting = copy .deepcopy (settings .CACHES )
266
269
caches_setting ["default" ]["KEY_FUNCTION" ] = "tests.test_cache_options.make_key"
You can’t perform that action at this time.
0 commit comments