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

Method test_uq_key

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

Source from the content-addressed store, hash-verified

5982 )
5983
5984 def test_uq_key(self):
5985 u1 = self._fixture(
5986 naming_convention={"uq": "uq_%(table_name)s_%(column_0_key)s"}
5987 )
5988 uq = UniqueConstraint(u1.c.data, u1.c.data2)
5989 eq_(uq.name, "uq_user_data")
5990
5991 def test_uq_label(self):
5992 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