MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_uq_label

Method test_uq_label

test/sql/test_metadata.py:5783–5788  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5781 eq_(uq.name, "uq_user_data")
5782
5783 def test_uq_label(self):
5784 u1 = self._fixture(
5785 naming_convention={"uq": "uq_%(table_name)s_%(column_0_label)s"}
5786 )
5787 uq = UniqueConstraint(u1.c.data, u1.c.data2)
5788 eq_(uq.name, "uq_user_user_data")
5789
5790 def test_uq_allcols_underscore_name(self):
5791 u1 = self._fixture(

Callers

nothing calls this directly

Calls 3

_fixtureMethod · 0.95
UniqueConstraintClass · 0.90
eq_Function · 0.90

Tested by

no test coverage detected