summaryrefslogtreecommitdiff
path: root/tests/model_enums
diff options
context:
space:
mode:
authorSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2024-12-12 18:00:20 +0100
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-01-15 22:28:37 +0100
commit55f71b195b76f4806bd1cd928f85d9c72aa935f4 (patch)
tree78455113128e6579965de25e88ff73dc182390a8 /tests/model_enums
parentb4bc393b23dd2a222a3ca52b5d44ec33499c789f (diff)
Removed ChoicesMeta per deprecation timeline.
Diffstat (limited to 'tests/model_enums')
-rw-r--r--tests/model_enums/tests.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/model_enums/tests.py b/tests/model_enums/tests.py
index ee9dc369f6..e60df7c24b 100644
--- a/tests/model_enums/tests.py
+++ b/tests/model_enums/tests.py
@@ -6,7 +6,6 @@ import uuid
from django.db import models
from django.template import Context, Template
from django.test import SimpleTestCase
-from django.utils.deprecation import RemovedInDjango60Warning
from django.utils.functional import Promise
from django.utils.translation import gettext_lazy as _
from django.utils.version import PY311
@@ -321,13 +320,3 @@ class CustomChoicesTests(SimpleTestCase):
class Identifier(uuid.UUID, models.Choices):
A = "972ce4eb-a95f-4a56-9339-68c208a76f18"
-
-
-class ChoicesMetaDeprecationTests(SimpleTestCase):
- def test_deprecation_warning(self):
- from django.db.models import enums
-
- msg = "ChoicesMeta is deprecated in favor of ChoicesType."
- with self.assertWarnsMessage(RemovedInDjango60Warning, msg) as ctx:
- enums.ChoicesMeta
- self.assertEqual(ctx.filename, __file__)