File tree 1 file changed +12
-1
lines changed
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 13
13
)
14
14
15
15
16
+ class TestChannelLayer (BaseChannelLayer ):
17
+ async def send (self , channel : str , message : dict ):
18
+ raise NotImplementedError ()
19
+
20
+ async def receive (self , channel : str ) -> dict :
21
+ raise NotImplementedError ()
22
+
23
+ async def new_channel (self , prefix : str = "specific." ) -> str :
24
+ raise NotImplementedError ()
25
+
26
+
16
27
class TestChannelLayerManager (unittest .TestCase ):
17
28
@override_settings (
18
29
CHANNEL_LAYERS = {"default" : {"BACKEND" : "channels.layers.InMemoryChannelLayer" }}
@@ -72,7 +83,7 @@ async def test_send_receive():
72
83
73
84
@pytest .mark .parametrize (
74
85
"method" ,
75
- [BaseChannelLayer ().valid_channel_name , BaseChannelLayer ().valid_group_name ],
86
+ [TestChannelLayer ().valid_channel_name , TestChannelLayer ().valid_group_name ],
76
87
)
77
88
@pytest .mark .parametrize (
78
89
"channel_name,expected_valid" ,
You can’t perform that action at this time.
0 commit comments