Hello Andrew, sorry for the lack of traceback on the gist. I have changed my code a bit, i was using the `async_to_sync` but now i'm using this way inside my User save method:
channel_layer = get_channel_layer()
channel_layer.group_send(
'type': 'users.post_save',
}
)
And everything works fine, but my tests are raising warnings on each test, like this, if you want to see the full traceback of my test,
click here:
users/tests/test_consumers.py::test_user_consumer
/Users/luan/Sources/channels-test/users/models.py:56: RuntimeWarning: coroutine 'RedisChannelLayer.group_send' was never awaited
I have update my gist, if you want to see something else, but in general i'm using py.test,
as you can see in here.
Thanks for everything, Andrew.