diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-01-14 10:04:20 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-01-14 17:50:04 +0100 |
| commit | 2dd6a83d2d7c61321ac4a9b10fbf3c379cb305c3 (patch) | |
| tree | 3f87cb1b10dddce3ad43689e13cc8e42a9faec51 /tests/postgres_tests | |
| parent | 8fdb5a656a35dc9beef4cf2b79a782068263c7ec (diff) | |
Refs #12990 -- Removed django.contrib.postgres.forms.JSONField per deprecation timeline.
Diffstat (limited to 'tests/postgres_tests')
| -rw-r--r-- | tests/postgres_tests/test_json_deprecation.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/postgres_tests/test_json_deprecation.py b/tests/postgres_tests/test_json_deprecation.py deleted file mode 100644 index d55b71efb0..0000000000 --- a/tests/postgres_tests/test_json_deprecation.py +++ /dev/null @@ -1,18 +0,0 @@ -try: - from django.contrib.postgres import forms -except ImportError: - pass - -from django.utils.deprecation import RemovedInDjango40Warning - -from . import PostgreSQLSimpleTestCase - - -class DeprecationTests(PostgreSQLSimpleTestCase): - def test_form_field_deprecation_message(self): - msg = ( - 'django.contrib.postgres.forms.JSONField is deprecated in favor ' - 'of django.forms.JSONField.' - ) - with self.assertWarnsMessage(RemovedInDjango40Warning, msg): - forms.JSONField() |
