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

Method test_name

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

Source from the content-addressed store, hash-verified

1311 )
1312
1313 def test_name(self):
1314 constraints = get_constraints(UniqueConstraintProduct._meta.db_table)
1315 expected_name = "name_color_uniq"
1316 self.assertIn(expected_name, constraints)
1317
1318 def test_condition_must_be_q(self):
1319 with self.assertRaisesMessage(

Callers

nothing calls this directly

Calls 1

get_constraintsFunction · 0.85

Tested by

no test coverage detected