summaryrefslogtreecommitdiff
path: root/tests/signals
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2021-01-13 11:08:32 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-01-14 17:50:04 +0100
commit1adcf20385c2856d3655089ff7a0b55b32e5587a (patch)
tree1fce2b161679f3647ff27d2a0e6d5de8d4cfe37e /tests/signals
parent4bb30fe5d598a7acd2a3055c5e66224cf42a75e9 (diff)
downloaddjango-1adcf20385c2856d3655089ff7a0b55b32e5587a.tar.gz
Refs #31327 -- Removed providing_args argument for Signal per deprecation timeline.
Diffstat (limited to 'tests/signals')
-rw-r--r--tests/signals/test_deprecation.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/signals/test_deprecation.py b/tests/signals/test_deprecation.py
deleted file mode 100644
index b961dafd8a..0000000000
--- a/tests/signals/test_deprecation.py
+++ /dev/null
@@ -1,22 +0,0 @@
-import warnings
-
-from django.dispatch import Signal
-from django.test import SimpleTestCase
-from django.utils.deprecation import RemovedInDjango40Warning
-
-
-class SignalDeprecationTests(SimpleTestCase):
- def test_providing_args_warning(self):
- msg = (
- 'The providing_args argument is deprecated. As it is purely '
- 'documentational, it has no replacement. If you rely on this '
- 'argument as documentation, you can move the text to a code '
- 'comment or docstring.'
- )
- with self.assertWarnsMessage(RemovedInDjango40Warning, msg):
- Signal(providing_args=['arg1', 'arg2'])
-
- def test_without_providing_args_does_not_warn(self):
- with warnings.catch_warnings(record=True) as recorded:
- Signal()
- self.assertEqual(len(recorded), 0)