mirror of
https://github.com/django/daphne.git
synced 2025-11-18 00:15:19 +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'
|
||
|---|---|---|
| .. | ||
| binding | ||
| delay | ||
| generic | ||
| management | ||
| tests | ||
| __init__.py | ||
| apps.py | ||
| asgi.py | ||
| auth.py | ||
| channel.py | ||
| exceptions.py | ||
| hacks.py | ||
| handler.py | ||
| log.py | ||
| message.py | ||
| routing.py | ||
| sessions.py | ||
| signals.py | ||
| staticfiles.py | ||
| utils.py | ||
| worker.py | ||