MCPcopy Create free account
hub / github.com/zzzeek/sqlalchemy / test_select_composition_two

Method test_select_composition_two

test/sql/test_text.py:93–104  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

91 )
92
93 def test_select_composition_two(self):
94 s = select()
95 s = s.add_columns(column("column1"), column("column2"))
96 s = s.where(text("column1=12"))
97 s = s.where(text("column2=19"))
98 s = s.order_by("column1")
99 s = s.select_from(text("table1"))
100 self.assert_compile(
101 s,
102 "SELECT column1, column2 FROM table1 WHERE "
103 "column1=12 AND column2=19 ORDER BY column1",
104 )
105
106 def test_select_composition_three(self):
107 self.assert_compile(

Callers

nothing calls this directly

Calls 8

selectFunction · 0.90
columnFunction · 0.90
textFunction · 0.90
assert_compileMethod · 0.80
add_columnsMethod · 0.45
whereMethod · 0.45
order_byMethod · 0.45
select_fromMethod · 0.45

Tested by

no test coverage detected