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

Method test_uq_key

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

Source from the content-addressed store, hash-verified

5774 )
5775
5776 def test_uq_key(self):
5777 u1 = self._fixture(
5778 naming_convention={"uq": "uq_%(table_name)s_%(column_0_key)s"}
5779 )
5780 uq = UniqueConstraint(u1.c.data, u1.c.data2)
5781 eq_(uq.name, "uq_user_data")
5782
5783 def test_uq_label(self):
5784 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