Vikalp Jain
b9519d112d
Fix issue with calling super setUp while test cases ( #231 )
2016-07-01 09:06:56 -07:00
Andrew Godwin
92012fbc27
Fixed #87 : Don't drop headers and status on empty streaming responses
2016-06-29 12:20:47 -07:00
Tim Watts
4a09cec2d4
Test runserver ( #214 )
...
* Add tests for runserver and runworker management commands
* Fix flake8 and isort errors
* Refactor mocking, add comments to tests
* rm unneeded vargs
2016-06-29 11:26:21 -07:00
Andrew Godwin
e890c48f3f
Fixed #210 : Fix query string to be bytes and not decoded
2016-06-22 09:44:10 -07:00
Andrew Godwin
69f6791a15
Fix test to match new spec.
2016-06-21 08:22:14 -07:00
Krukov D
e31e326f10
Added unicode_literals from future at tests/base ( #203 )
2016-06-09 12:41:25 -07:00
Krukov D
f8debafbd3
Added path parameter to the HttpClient.send method ( #193 )
2016-06-02 16:25:55 -07:00
Krukov D
c4f016b9c2
Fix for apply_routes: wrap routes in list, if it is not so ( #192 )
2016-06-02 16:25:39 -07:00
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
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
Andrew Godwin
bfacee6319
Add class-based consumers
2016-05-25 17:45:56 -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
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
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
dcbab8b2b4
Remove DatabaseLayer and improve deployment docs mentioning it
2016-05-07 10:35: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
cf9d7d6f76
Change to more precise TestCase import
2016-05-03 18:06:43 -07:00
Andrew Godwin
073cbca16d
Fixed #116 : Allow configuration of worker listening
2016-04-30 19:11:08 -07:00
Andrew Godwin
7bc35f1842
Fix up tests under py3
2016-04-26 14:05:17 +01:00
Andrew Godwin
d29f02fb33
Patchinator/django fixes
2016-04-05 16:20:49 -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
1ab757fffb
Implement group_expiry on database channel backend
2016-03-28 11:59:25 +01: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
4f8b297462
Make flake8 more happy
2016-03-20 14:10:05 -03:00
Andrew Godwin
3cdf51ed84
Better spacing in routing tests
2016-03-20 14:06:35 -03:00
Andrew Godwin
18385d68f0
Fix bad rename stuff
2016-03-20 13:52:54 -03:00
Andrew Godwin
841e19da79
Change to a full pattern-based routing system.
2016-03-20 13:48:34 -03:00
Andrew Godwin
5bf19f52f6
Remove status_text from the HTTP response spec.
2016-03-11 10:30:40 -08:00
Andrew Godwin
9f8bf30cdd
Fix handler test
2016-03-11 10:23:07 -08:00
Andrew Godwin
5c9093ddeb
Fix bug with sending empty response
2016-02-14 21:26:34 +00:00
Andrew Godwin
1a7010aa2c
Make _stream work on AsgiRequest
2016-02-10 19:15:00 +00:00
Andrew Godwin
c7d417dd33
OKAY I THINK THIS IS THE LAST STUPID MISTAKE
2016-02-09 13:35:13 -08:00
Andrew Godwin
be172045ed
Fix test path encoding
2016-02-09 13:04:23 -08:00
Andrew Godwin
fa58375a51
Python 3 fixes
2016-02-05 16:47:11 -08:00
Andrew Godwin
5cd2cbdfee
Add test suite for ASGI handlers
2016-02-05 15:53:01 -08:00
Andrew Godwin
17e9824f71
Update database channel backend to pass conformance
2016-02-05 14:16:20 -08:00
Andrew Godwin
a9810014ca
Rework database channel layer and tests, to use ASGI conformance suite
2016-01-17 14:28:01 -08:00
ekmartin
4f87d53adc
Include cookies in request_info for websockets
2015-11-18 17:48:03 +01:00
ekmartin
cf2de79d64
Add isort and fix errors
2015-11-09 13:01:02 +01:00
ekmartin
1804d66b85
Ignore testproject for flake8
2015-11-09 13:00:00 +01:00
ekmartin
4469b55d96
Fix pep8 errors using the Django core's flake8 preset
2015-11-09 13:00:00 +01:00
ekmartin
351a18ba07
Add tox and run tests for python 2.7/3.5 and Django 1.6-1.8
2015-11-09 12:58:59 +01:00