MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_label_length_custom_maxlen

Method test_label_length_custom_maxlen

test/sql/test_labels.py:88–97  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

86 )
87
88 def test_label_length_custom_maxlen(self):
89 max_ident_length = testing.db.dialect.max_identifier_length
90 eng = engines.testing_engine(
91 options={
92 "label_length": max_ident_length + 10,
93 "max_identifier_length": max_ident_length + 20,
94 }
95 )
96 with eng.connect() as conn:
97 eq_(conn.dialect.max_identifier_length, max_ident_length + 20)
98
99 def test_label_length_custom_maxlen_dialect_only(self):
100 dialect = default.DefaultDialect(max_identifier_length=47)

Callers

nothing calls this directly

Calls 3

eq_Function · 0.90
testing_engineMethod · 0.80
connectMethod · 0.45

Tested by

no test coverage detected