summaryrefslogtreecommitdiff
path: root/tests/constraints
diff options
context:
space:
mode:
authorSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2024-12-12 16:32:08 +0100
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-01-15 22:28:37 +0100
commitb5a6c93a180e2c213e42f30a30bf63548a248957 (patch)
tree2d7e385539e4e7619e0c82472039ec0185793813 /tests/constraints
parent810edfd7428e12bd640573112c6c1a024ac33da2 (diff)
Refs #34355 -- Removed support for positional arguments in BaseConstraint per deprecation timeline.
Diffstat (limited to 'tests/constraints')
-rw-r--r--tests/constraints/tests.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/constraints/tests.py b/tests/constraints/tests.py
index 9047710098..4cf5a748a7 100644
--- a/tests/constraints/tests.py
+++ b/tests/constraints/tests.py
@@ -103,11 +103,6 @@ class BaseConstraintTests(SimpleTestCase):
},
)
- def test_deprecation(self):
- msg = "Passing positional arguments to BaseConstraint is deprecated."
- with self.assertRaisesMessage(RemovedInDjango60Warning, msg):
- BaseConstraint("name", "violation error message")
-
def test_name_required(self):
msg = (
"BaseConstraint.__init__() missing 1 required keyword-only argument: 'name'"
@@ -115,11 +110,6 @@ class BaseConstraintTests(SimpleTestCase):
with self.assertRaisesMessage(TypeError, msg):
BaseConstraint()
- @ignore_warnings(category=RemovedInDjango60Warning)
- def test_positional_arguments(self):
- c = BaseConstraint("name", "custom %(name)s message")
- self.assertEqual(c.get_violation_error_message(), "custom name message")
-
class CheckConstraintTests(TestCase):
def test_eq(self):