How to test a WebsocketConsumer that has async_to_sync code in it

40 views
Skip to first unread message

Artemis

unread,
Jun 6, 2018, 7:26:37 AM6/6/18
to Django users
I cannot test my WebsocketConsumer ( which includes many async_to_sync) references using the WebsocketCommunicator.

My problem is identical to this closed issue:

Can someone give me some hints as to how to proceed without removing the async_to_sync references in my consumer?


Andrew Godwin

unread,
Jun 6, 2018, 10:30:16 AM6/6/18
to django...@googlegroups.com
Hi - I will reply on the ticket, as I'll be requesting you paste a large chunk of code and the formatting is better over there!

Andrew

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8c49a53d-1540-4889-95da-7244b46dcc9c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages