Re: How to test a WebsocketConsumer that has async_to_sync code in it

2018-06-06 Thread Andrew Godwin
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 On Wed, Jun 6, 2018 at 12:26 PM 'Artemis' via Django users < django-users@googlegroups.com> wrote: > I cannot test my *WebsocketConsumer* ( which includes many *

How to test a WebsocketConsumer that has async_to_sync code in it

2018-06-06 Thread 'Artemis' via 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: https://github.com/django/channels/issues/944 Can someone give me some hints as to how to proceed without removing the *async_t