Re: Testing Channels 2.0 consumers - problem with routing

2018-02-11 Thread Azamat Galimzhanov
ZD7 Why could it be? On Saturday, February 10, 2018 at 12:03:53 AM UTC+6, Andrew Godwin wrote: > > A disconnect() method in your generic consumer takes one argument, a > `close_code` - add that in to your function and it will fix it. > > Feel free to continue problems in this thread, or you c

Re: Testing Channels 2.0 consumers - problem with routing

2018-02-09 Thread Azamat Galimzhanov
> (e.g. you mocked group_name as a non-property, I think), but look at the > main issue. > > Can you make your code print out what _is_ in `self.scope`? url_route > should definitely be in there, but I am curious what it looks like if it is > not. > > Andrew > > On Wed,

Testing Channels 2.0 consumers - problem with routing

2018-02-07 Thread Azamat Galimzhanov
Hello, I'm setting up an auctions application using channels and websockets. When I'm running the server the code works just fine, troubles arise when I'm trying to test my app. asgiref==2.1.3 daphne==2.0.2 Django==2.0.2 channels==2.0.1 channels-redis==2.0.2 pytest==3.4.0 pytest-asyncio==0.8.0