Wednesday, June 6, 2018

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

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 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?


--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@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.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@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/CAFwN1urTi7T-NEcVGiHSL%3DGokyZx8qeMiSWBciQLrzh2cgRkxw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment