daphne/channels/tests
Sam Bolgert b115f8fa04 Update channel_session decorator to rehydrate http_session (#348)
* Update channel_session decorator to rehydrate http_session

Update the http_session decorator to write the http session key
to the channel_session when available. This allows the channel_session
decorator to rehydrate the http_session after the initial websocket
connection.

closes #318

* Add persist=True option to http_session

* Add explicit option to store the session key in the channel session
* Update docs
* Add test case

* Add channel_and_http_session decorator

This decorator enables both sessions and maintains
the http_session for the lifetime of the websocket connection.
2016-09-29 11:08:44 -07:00
..
__init__.py Use a mixin for common test-case code. This way we can have both (#305) 2016-08-20 17:53:54 -07:00
a_file Tests for file and streaming response handling inside Django (#185) 2016-06-01 09:47:50 -07:00
base.py Iimprovements for test client (#352) 2016-09-12 11:28:12 +01:00
http.py Iimprovements for test client (#352) 2016-09-12 11:28:12 +01:00
settings.py Test runserver (#214) 2016-06-29 11:26:21 -07:00
test_binding.py Inbound tests (#351) 2016-09-12 11:27:42 +01:00
test_generic.py as_route method for class based consumers (#266) 2016-07-28 10:48:57 +01:00
test_handler.py Remove invalid test. FileResponse requires a file object. (#311) 2016-08-24 17:39:18 -07:00
test_management.py pass subprotocols if defined (#282) 2016-08-04 15:30:52 -07:00
test_request.py Fix type for request.META['SERVER_PORT'] (#378) 2016-09-23 11:37:45 -07:00
test_routing.py Add class-based consumers 2016-05-25 17:45:56 -07:00
test_sessions.py Update channel_session decorator to rehydrate http_session (#348) 2016-09-29 11:08:44 -07:00
test_worker.py Run workers in threads. (#322) 2016-08-31 21:26:03 -07:00