A module for a live_server with support for django-channels.
Classes:
|
Does basically the same as TransactionTestCase but also launches a live Daphne server in a separate process, so that the tests may use another test framework, such as Selenium, instead of the built-in dummy client. |
Functions:
|
- class dasf_broker.tests.live_ws_server_helper.ChannelsLiveServer(addr: str, *, start: bool = True)
Bases:
objectDoes basically the same as TransactionTestCase but also launches a live Daphne server in a separate process, so that the tests may use another test framework, such as Selenium, instead of the built-in dummy client.
Classes:
alias of
DaphneProcessalias of
ASGIStaticFilesHandlerMethods:
__init__(addr, *[, start])stop()Attributes:
- ProtocolServerProcess
alias of
DaphneProcess
- host = 'localhost'
- serve_static = True
- static_wrapper
alias of
ASGIStaticFilesHandler
- stop()
- property url
- property ws_url
- dasf_broker.tests.live_ws_server_helper.make_application(*, static_wrapper)