from asgi_redis import RedisChannelLayer
from asgiref.conformance import make_tests

channel_layer = RedisChannelLayer(expiry=1)
RedisTests = make_tests(channel_layer, expiry_delay=1.1)

import unittest
from asgi_redis import RedisChannelLayer
from asgiref.conformance import ConformanceTestCase


# Default conformance tests
class RedisLayerTests(ConformanceTestCase):

    channel_layer = RedisChannelLayer(expiry=1, group_expiry=2)
    expiry_delay = 1.1

Update to match new asgiref test style
Update to match new asgiref test style

+ import unittest
  from asgi_redis import RedisChannelLayer
- from asgiref.conformance import make_tests
+ from asgiref.conformance import ConformanceTestCase
  
- channel_layer = RedisChannelLayer(expiry=1)
- RedisTests = make_tests(channel_layer, expiry_delay=1.1)
  
+ # Default conformance tests
+ class RedisLayerTests(ConformanceTestCase):
+ 
+     channel_layer = RedisChannelLayer(expiry=1, group_expiry=2)
+     expiry_delay = 1.1
+ 
Update to match new asgiref test style
## Code Before:
from asgi_redis import RedisChannelLayer
from asgiref.conformance import make_tests

channel_layer = RedisChannelLayer(expiry=1)
RedisTests = make_tests(channel_layer, expiry_delay=1.1)

## Instruction:
Update to match new asgiref test style
## Code After:
import unittest
from asgi_redis import RedisChannelLayer
from asgiref.conformance import ConformanceTestCase


# Default conformance tests
class RedisLayerTests(ConformanceTestCase):

    channel_layer = RedisChannelLayer(expiry=1, group_expiry=2)
    expiry_delay = 1.1
