From 14a250e388d977ada228de4ad2830da06b5ecc36 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Tue, 17 Feb 2026 15:56:38 -0800 Subject: [PATCH] Use in-memory channel layers in tests --- src/conftest.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/conftest.py diff --git a/src/conftest.py b/src/conftest.py new file mode 100644 index 000000000..532a767a8 --- /dev/null +++ b/src/conftest.py @@ -0,0 +1,11 @@ +import pytest +from pytest_django.fixtures import SettingsWrapper + + +@pytest.fixture(autouse=True) +def in_memory_channel_layers(settings: SettingsWrapper) -> None: + settings.CHANNEL_LAYERS = { + "default": { + "BACKEND": "channels.layers.InMemoryChannelLayer", + }, + }