A module for a live_server with support for django-channels.

Classes:

ChannelsLiveServer(addr, *[, start])

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:

make_application(*, static_wrapper)

class dasf_broker.tests.live_ws_server_helper.ChannelsLiveServer(addr: str, *, start: bool = True)

Bases: object

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.

Classes:

ProtocolServerProcess

alias of DaphneProcess

static_wrapper

alias of ASGIStaticFilesHandler

Methods:

__init__(addr, *[, start])

stop()

Attributes:

host

serve_static

url

ws_url

ProtocolServerProcess

alias of DaphneProcess

__init__(addr: str, *, start: bool = True) None
host = 'localhost'
live_server_kwargs: Dict[str, Any]
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)