daphne/channels/tests
Pierre Chiquet 95c9925fe4 Update Binding to support models with UUIDField as primary key (#528)
* Add custom TestUUIDModel for auto tests

* Update Binding to support models with UUIDField as primary key

Add and fix test_trigger_outbound_create_non_auto_pk.
Before updating pre_save_receiver, this new test failed with this error:

======================================================================
FAIL: test_trigger_outbound_create_non_auto_pk
(channels.tests.test_binding.TestsBinding)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\User\git\contribs\python\channels\channels\tests\test_binding.py", line 85, in test_trigger_outbound_create_non_auto_pk
    self.assertEqual(received['payload']['action'], 'create')
AssertionError: u'update' != u'create'
2017-02-14 09:48:00 -08: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 Sort imports correctly. 2017-01-25 17:04:06 -08:00
http.py Remove unicode literals (#476) 2017-01-11 10:03:03 -08:00
models.py Update Binding to support models with UUIDField as primary key (#528) 2017-02-14 09:48:00 -08:00
settings.py Update Binding to support models with UUIDField as primary key (#528) 2017-02-14 09:48:00 -08:00
test_binding.py Update Binding to support models with UUIDField as primary key (#528) 2017-02-14 09:48:00 -08:00
test_delay.py Delay Protocol Server (#401) 2016-11-24 10:54:03 -08:00
test_generic.py Accept Connection at WebsocketConsumer (#467) 2017-01-09 10:08:00 -08:00
test_handler.py Remove consumer_finished from tests that flushed 2017-01-11 15:40:24 -08:00
test_http.py Valid cookie serialization for the test HTTPClient (#453) 2016-12-22 22:46:09 +00:00
test_management.py Fix bad asserts in runserver endpoint tests 2017-01-08 18:18:00 -08:00
test_request.py Sort imports and make Travis run isort (#425) 2016-11-05 12:08:38 +01:00
test_routing.py Sort imports and make Travis run isort (#425) 2016-11-05 12:08:38 +01:00
test_sessions.py Sort imports and make Travis run isort (#425) 2016-11-05 12:08:38 +01:00
test_worker.py Sort imports and make Travis run isort (#425) 2016-11-05 12:08:38 +01:00