Commit Graph

213 Commits

Author SHA1 Message Date
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
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
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
6e40fba47c Releasing version 0.13.0 2016-05-07 13:09:12 -07:00
Andrew Godwin
dcbab8b2b4 Remove DatabaseLayer and improve deployment docs mentioning it 2016-05-07 10:35:12 -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
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
Krukov D
681616caa4 Fix missed logger name (#138) 2016-04-28 09:52:49 +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
Michael Kutý
80206e5452 Fix loading files. #123 2016-04-08 11:04:55 -07:00
Andrew Godwin
8abe53e170 Change type of error 2016-04-06 22:02:41 -07:00
Andrew Godwin
70637b7afe Wrap line properly 2016-04-05 22:29:00 -07:00
Andrew Godwin
cd9c049296 Rename database layer models to be consistent 2016-04-05 22:25:05 -07:00
Andrew Godwin
4504eb6ec9 Add select_for_update() to improve isolation 2016-04-05 22:18:54 -07:00
Andrew Godwin
732167282b Some import sorting stuff 2016-04-05 17:38:05 -07:00
Andrew Godwin
11218089bd Fix flake error 2016-04-05 17:30:47 -07:00
Andrew Godwin
4437e04528 Fix circular import issue 2016-04-05 17:19:23 -07:00
Andrew Godwin
4bab456c61 Fail to work if you have channel-enabled Django 2016-04-05 16:44:26 -07:00
Andrew Godwin
d29f02fb33 Patchinator/django fixes 2016-04-05 16:20:49 -07:00
Andrew Godwin
2ef0baa5c2 Release 0.11.0 2016-04-05 08:21:54 -07:00
David Evans
28e897d9bc Remove lazy loading of middleware
This mirrors the equivalent change in Django itsef. See:

https://code.djangoproject.com/ticket/26452

99bb7fcc18
2016-04-04 13:36:18 -07:00
Andrew Godwin
37923c3674 Flake8 fixes 2016-04-04 03:38:38 +02:00
Andrew Godwin
67e3e55131 Respect HTTP request body close in ASGI. 2016-04-04 03:34:05 +02:00
Andrew Godwin
920882f1da Implement timeout on request body reading 2016-04-04 03:34:05 +02:00
Andrew Godwin
a563d4353f Fix new routing channel name collector and add test 2016-04-04 03:34:05 +02:00
Andrew Godwin
5a22412c16 Considerably improve routing code simplicity and shortcircuiting 2016-04-04 03:34:05 +02:00
Andrew Godwin
0e3c742a80 Introduce ChannelTestCase to make testing easier 2016-04-04 03:34:05 +02:00
Andrew Godwin
8f40ad1d68 Releasing 0.10.3 2016-03-29 11:44:15 +01:00
Andrew Godwin
1ab757fffb Implement group_expiry on database channel backend 2016-03-28 11:59:25 +01:00
Andrew Godwin
59198ea93e Add signed cookie warning 2016-03-28 11:45:24 +01:00
Andrew Godwin
40b2348600 Fixed #101: Obscure error when strings in routing list. 2016-03-26 15:28:40 -07:00
Andrew Godwin
392ba22768 Releasing 0.10.2 2016-03-23 12:53:34 -07:00
Andrew Godwin
f829a14312 Don't show last-chance traceback when DEBUG is off. 2016-03-23 12:53:02 -07:00
Andrew Godwin
7bc94b342e Implement last-resort error handler for HTTP requests
There's no WSGI server to do this for us, so Channels has to.
2016-03-23 11:50:35 -07:00
Andrew Godwin
8a65199bfe Also normalise include patterns, and add tests for all regex norm 2016-03-22 10:39:27 -07:00
Andrew Godwin
7864519241 Releasing 0.10.1 2016-03-22 10:32:12 -07:00
Andrew Godwin
52c821a186 Increase FileResponse block size everywhere, not just staticfiles 2016-03-22 10:31:37 -07:00