MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_compile_params

Method test_compile_params

test/sql/test_statement_params.py:71–76  ·  test/sql/test_statement_params.py::BasicTests.test_compile_params
(self, impl)

Source from the content-addressed store, hash-verified

69
70 @testing.combinations(*_relevant_impls())
71 def test_compile_params(self, impl):
72 new = impl.params(foo=5, bar=10)
73 is_not(new, impl)
74 eq_(impl.compile()._collected_params, {})
75 eq_(new.compile()._collected_params, {class="st">"foo": 5, class="st">"bar": 10})
76 eq_(new._generate_cache_key()[2], {class="st">"foo": 5, class="st">"bar": 10})
77
78
79class CacheTests(fixtures.TablesTest):

Callers

nothing calls this directly

Calls 5

is_notFunction · 0.90
eq_Function · 0.90
paramsMethod · 0.45
compileMethod · 0.45
_generate_cache_keyMethod · 0.45

Tested by

no test coverage detected