mirror of
https://github.com/django/daphne.git
synced 2025-12-03 07:43:57 +03:00
* 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'
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| base.py | ||
| websockets.py | ||