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

Method _length_fixture

test/sql/test_labels.py:58–66  ·  view source on GitHub ↗
(self, length=IDENT_LENGTH, positional=False)

Source from the content-addressed store, hash-verified

56 )
57
58 def _length_fixture(self, length=IDENT_LENGTH, positional=False):
59 dialect = default.DefaultDialect()
60 dialect.max_identifier_length = (
61 dialect._user_defined_max_identifier_length
62 ) = length
63 if positional:
64 dialect.paramstyle = "format"
65 dialect.positional = True
66 return dialect
67
68 def _engine_fixture(self, length=IDENT_LENGTH):
69 eng = engines.testing_engine()

Calls

no outgoing calls

Tested by

no test coverage detected