Commit Graph

428 Commits

Author SHA1 Message Date
Tim Watts
56104e7fc6 Tests for file and streaming response handling inside Django (#185)
* add first streaming and file response tests

* iterate over response and not streaming content directly

* add coverage for FileResponse and StreamingHttpResponse

* added tests for headers, json responses, and redirect responses

* rm print statement

* skip failing stringio test
2016-06-01 09:47:50 -07:00
Andrew Godwin
38641d8522 Fixed #182: Close response once we're done with it 2016-05-31 19:04:12 +00:00
Andrew Godwin
df0ae80bfb Fix send call in concepts doc 2016-05-31 18:34:06 +00:00
Andrew Godwin
80a9019cb2 Fix echo endpoint in testproject 2016-05-30 00:18:45 +00:00
Oskar Hahn
e0341e65cd Use window.location.host instead of 127.0.0.1 (#178)
See #176
2016-05-29 17:08:33 -07:00
Krukov D
2f3114b21e In-between method for adding decorators in right way + a few tests for generic consumer (#171)
* Corrected doc string for BaseConsumer

* Added get_handler method for Class-base consumers for wrapping by decorators in right way

* Added a few tests for generic consumers
2016-05-29 09:36:29 -07:00
Krukov D
1a09540ca8 Added fail_on_none parameter for Client.consume function (#172) 2016-05-28 18:31:15 -07:00
Thomas Güttler
917ba184bb Typo: "load of" -> "lot of" (#168) 2016-05-25 20:55:13 -07:00
Andrew Godwin
1168ca670e Releasing 0.14.0 2016-05-25 18:00:31 -07:00
Andrew Godwin
982a47a9df Add generics routing example 2016-05-25 17:56:06 -07:00
Andrew Godwin
49c9b74d6f Docs/flake fixes 2016-05-25 17:52:53 -07:00
Andrew Godwin
bfacee6319 Add class-based consumers 2016-05-25 17:45:56 -07:00
pinguin999
cc9057e90c Split the two files into two code blocks (#167) 2016-05-24 09:19:38 -07:00
pinguin999
c89a6cc9b9 Add pip install comand for asgi_redis (#166) 2016-05-24 09:19:25 -07:00
Krukov D
8827063bf2 Remove inherited methods and relative imports (#163)
* Remove inherited methods from HttpClient

* Using relative import in base of tests
2016-05-19 12:19:39 -07:00
Krukov D
05c41e9ad6 More tests utils for happy users (#162)
* Added Client abstraction

* Added apply_routes decorator/contextmanager

* Fix apply routes as decorator

* Separated Http specific client and 'Simple' client

* Remove Clients from ChannelTestCase

* Added cookies and headers management

* Fix wrong reverting

* Fixs for code style

* Added space before inline comment
2016-05-19 11:45:25 -07:00
Andrew Godwin
86a6478193 Add FAQ about sending messages from outside 2016-05-19 00:10:41 -07:00
Andrew Godwin
d1141e47aa Move email and UDP into their own spec docs 2016-05-18 11:34:48 -07:00
Andrew Godwin
3fe99f061c Update spec a bit more 2016-05-18 09:58:26 -07:00
Andrew Godwin
32320ec094 Releasing 0.13.1 2016-05-13 10:27:12 -07:00
Sachin Rekhi
363b5a09e9 improve @enforce_ordering to leverage a wait channel to avoid spinlocks (#144)
* improved @enforce_ordering to leverage a wait channel to avoid spinlocks

* addressed pyflake issues

* renamed wait channel to __wait__.<reply channel>

* handled potential ChannelFull exception

* updated sessions unit tests

* updated enforce_ordering tests to reflect new approach of leveraging wait channels

* addressed pyflake issues

* more pyflake fixes

* removed close_on_error handling on enforce_ordering since only worked on websockets
2016-05-12 10:38:06 -07:00
conor
c9497e74dd Remove unused 'Group' import (#149)
Was this supposed to be here? It isn't used until the next section.
2016-05-10 09:07:39 -07:00
Anatol Ulrich
2874350a6a pass arguments to get_consumer (#147) 2016-05-09 09:51:51 -07:00
Krukov D
9505906b42 Fix re-inserting, with tests (#146)
* Stopping re-inserting at first success

* Added a few tests for worker running

* Coping routes in channels layers at the ChannelTestCase

* Remake worker test with less mocking
2016-05-08 12:21:58 -07:00
Andrew Godwin
619aed9be2 Elaborate a bit more on deployment on PaaSs 2016-05-08 11:09:36 -07:00
Andrew Godwin
6e40fba47c Releasing version 0.13.0 2016-05-07 13:09:12 -07:00
Andrew Godwin
175d13c28b Fix up doc links to removed document 2016-05-07 10:53:05 -07:00
Andrew Godwin
dcbab8b2b4 Remove DatabaseLayer and improve deployment docs mentioning it 2016-05-07 10:35:12 -07:00
Andrew Godwin
f346585f7c Change from waffle to 1MB message limit. 2016-05-06 18:41:51 -07:00
Andrew Godwin
feea84f323 Introduce backpressure with ChannelFull 2016-05-05 22:48:12 -07:00
Andrew Godwin
7b75761644 Flake8 fixes 2016-05-04 18:52:52 -07:00
Andrew Godwin
2f01155bfd Session tests 2016-05-04 10:39:38 -07:00
Andrew Godwin
1eb6a530d3 WSGI-ASGI deploy notes 2016-05-04 09:27:01 -07:00
Andrew Godwin
2219546a5d Noun docs changes 2016-05-04 09:20:36 -07:00
Andrew Godwin
ea66b6560b Doc spelling corrections 2016-05-03 18:43:15 -07:00
Andrew Godwin
96735b917b Make flake8 like indentation 2016-05-03 18:14:41 -07:00
Andrew Godwin
45dfeb548e Django 1.10 patch fixes 2016-05-03 18:10:51 -07:00
Andrew Godwin
cf9d7d6f76 Change to more precise TestCase import 2016-05-03 18:06:43 -07:00
Andrew Godwin
e451ea4d69 Reformat runworker a bit 2016-05-02 19:17:24 -07:00
Andrew Godwin
a9187b99fe More formatting fixes 2016-04-30 20:55:19 -07:00
Andrew Godwin
698c2aaca0 Fix worker.py formatting 2016-04-30 19:15:45 -07:00
Andrew Godwin
073cbca16d Fixed #116: Allow configuration of worker listening 2016-04-30 19:11:08 -07:00
Benjamin Bach
c579f27f6d Update to clarify Python Compatibility (#140)
Does this make sense? A fellow team member didn't believe that Channels were Python 3 ready after looking at the docs, so I though it's best to clarify it once and for all, for instance in the FAQ?
2016-04-28 17:13:12 +01:00
Krukov D
681616caa4 Fix missed logger name (#138) 2016-04-28 09:52:49 +01:00
Andrew Godwin
6b0845ef22 Update WSGI URL path to match HTTP 2016-04-27 16:27:33 +01:00
Andrew Godwin
7bc35f1842 Fix up tests under py3 2016-04-26 14:05:17 +01:00
Andrew Godwin
b374a2a604 Releasing 0.12.0 2016-04-26 13:51:41 +01:00
Andrew Godwin
e684b27e46 Switch to uncode path and query string for HTTP 2016-04-26 13:33:26 +01:00
Andrew Godwin
7945859bb2 Update ASGI HTTP spec to make all path parts unicode 2016-04-26 13:09:50 +01:00
Andrew Godwin
2c39e42fa2 Add patchinator config for more docs 2016-04-26 13:09:50 +01:00