MCPcopy
hub / github.com/django/django / test_name

Method test_name

tests/constraints/tests.py:236–243  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

234 "supports_table_check_constraints", "can_introspect_check_constraints"
235 )
236 def test_name(self):
237 constraints = get_constraints(Product._meta.db_table)
238 for expected_name in (
239 "price_gt_discounted_price",
240 "constraints_product_price_gt_0",
241 ):
242 with self.subTest(expected_name):
243 self.assertIn(expected_name, constraints)
244
245 @skipUnlessDBFeature(
246 "supports_table_check_constraints", "can_introspect_check_constraints"

Callers

nothing calls this directly

Calls 1

get_constraintsFunction · 0.85

Tested by

no test coverage detected