Andrew Godwin
1a56ae8eb7
Sort imports correctly.
2017-01-25 17:04:06 -08:00
Andrew Godwin
9ae27cb835
Fixed #462 : Don't actually close DB connections during tests
2017-01-25 16:59:35 -08:00
raphael.boucher
21b08b01b8
Add demultiplexer for class-based consumers ( #383 )
...
Avoid coupling between the demultiplexer and consumers.
2017-01-08 18:05:50 -08:00
Paul
f4f45dbb9f
Sort imports and make Travis run isort ( #425 )
...
* Sort imports
* Make Travis run isort
2016-11-05 12:08:38 +01:00
Andrew Godwin
0ed04a9c06
Fix tests for new non-immediate sending
2016-10-05 15:32:37 -07:00
Krukov D
5464cba742
Iimprovements for test client ( #352 )
...
* Json encoding only for not string text at HttpClient
* Decode received content if possible
* Check that content received
* Using json kwarg at receive method to decode message text content
* Wrap decorator function at channel_session_user_from_http
* Cleanup
* Arbitrary indent. sorry
2016-09-12 11:28:12 +01:00
Frank Pape
c8fdea6460
Add send_and_consume method to HttpClient to match base Client behavior. Change argument ordering in send method to match base client. Fix repeated "live cycle" error in docstrings. ( #320 )
2016-08-26 12:04:38 -07:00
Luke Hodkinson
6649afce8e
Use a mixin for common test-case code. This way we can have both ( #305 )
...
a regular channels test-case, and a transaction test-case, too.
2016-08-20 17:53:54 -07:00
Krukov Dima
3c03b44af7
Added method join_group to the test Client
2016-07-24 13:08:31 +00:00
Vikalp Jain
b9519d112d
Fix issue with calling super setUp while test cases ( #231 )
2016-07-01 09:06:56 -07:00
Krukov D
e31e326f10
Added unicode_literals from future at tests/base ( #203 )
2016-06-09 12:41:25 -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
Krukov D
1a09540ca8
Added fail_on_none parameter for Client.consume function ( #172 )
2016-05-28 18:31:15 -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
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
cf9d7d6f76
Change to more precise TestCase import
2016-05-03 18:06:43 -07:00
Andrew Godwin
0e3c742a80
Introduce ChannelTestCase to make testing easier
2016-04-04 03:34:05 +02:00