Skip to content

Commit 2265bd0

Browse files
Updated ChannelsLiveServerTestCase documentation with port
1 parent 066b5da commit 2265bd0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/topics/testing.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,12 @@ standard Django ``LiveServerTestCase``:
362362
},
363363
}
364364
365+
port
366+
~~~~
367+
368+
Subclass ``ChannelsLiveServerTestCase`` with ``port = {port_number}`` to bind
369+
both the HTTP and WebSocket servers to a specific port.
370+
365371
serve_static
366372
~~~~~~~~~~~~
367373

0 commit comments

Comments
 (0)