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

Method test_bind_param_non_truncated

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

Source from the content-addressed store, hash-verified

432 )
433
434 def test_bind_param_non_truncated(self):
435 table1 = self.table1
436 stmt = table1.insert().values(
437 this_is_the_data_column=bindparam(
438 "this_is_the_long_bindparam_name"
439 )
440 )
441 compiled = stmt.compile(dialect=self._length_fixture(length=10))
442 eq_(
443 compiled.construct_params(
444 params={"this_is_the_long_bindparam_name": 5}
445 ),
446 {"this_is_the_long_bindparam_name": 5},
447 )
448
449 def test_bind_param_truncated_named(self):
450 table1 = self.table1

Callers

nothing calls this directly

Calls 7

_length_fixtureMethod · 0.95
bindparamFunction · 0.90
eq_Function · 0.90
valuesMethod · 0.45
insertMethod · 0.45
compileMethod · 0.45
construct_paramsMethod · 0.45

Tested by

no test coverage detected