MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_when_dicts

Method test_when_dicts

test/sql/test_case_statement.py:212–219  ·  view source on GitHub ↗
(self, test_case, expected)

Source from the content-addressed store, hash-verified

210 argnames="test_case, expected",
211 )
212 def test_when_dicts(self, test_case, expected):
213 t = table("test", column("col1"))
214
215 when_dict, value, else_ = testing.resolve_lambda(test_case, t=t)
216
217 self.assert_compile(
218 case(when_dict, value=value, else_=else_), expected
219 )
220
221 def test_text_doesnt_explode(self, connection):
222 info_table = self.tables.info_table

Callers

nothing calls this directly

Calls 4

tableFunction · 0.90
columnFunction · 0.90
caseFunction · 0.90
assert_compileMethod · 0.80

Tested by

no test coverage detected