1
0
mirror of https://github.com/django/django.git synced 2024-12-28 03:55:50 +00:00
django/tests/regressiontests/dispatch/tests/__init__.py
Dmitry Medvinsky d4da08375b Fixed #18454 -- Added ability to pass a list of signals to receiver.
Added ability to use receiver decorator in the following way:

    @receiver([post_save, post_delete], sender=MyModel)
    def signals_receiver(sender, **kwargs):
        ...
2012-06-23 16:31:16 +02:00

9 lines
187 B
Python

"""
Unit-tests for the dispatch project
"""
from __future__ import absolute_import
from .test_dispatcher import DispatcherTests, ReceiverTestCase
from .test_saferef import SaferefTests