Changes between Initial Version and Version 1 of Ticket #32409, comment 4


Ignore:
Timestamp:
Feb 3, 2021, 11:20:37 AM (3 years ago)
Author:
David

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32409, comment 4

    initial v1  
    2828    async def test_connect(self):
    2929        application = AuthMiddlewareStack(WebsocketConsumer.as_asgi())
    30         communicator = self._connect_to_consumer(application)
     30        communicator = WebsocketCommunicator(application, '/test')
     31        communicator.scope['user'] = self.user
    3132        connected, _subprotocol = await communicator.connect()
    3233        self.assertTrue(connected)
Back to Top