MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_rudimentary_statement_accessors

Method test_rudimentary_statement_accessors

test/orm/test_query.py:125–142  ·  view source on GitHub ↗
(self, test_case)

Source from the content-addressed store, hash-verified

123 ),
124 )
125 def test_rudimentary_statement_accessors(self, test_case):
126 User = self.classes.User
127
128 s = fixture_session()
129
130 q1 = testing.resolve_lambda(test_case, s=s, User=User)
131
132 is_true(
133 q1.statement.set_label_style(
134 LABEL_STYLE_TABLENAME_PLUS_COL
135 ).compare(q1.__clause_element__())
136 )
137
138 is_true(
139 q1.statement.set_label_style(
140 LABEL_STYLE_TABLENAME_PLUS_COL
141 ).compare(q1.selectable)
142 )
143
144 @testing.combinations(("session",), ("connection",), argnames="executor")
145 @testing.combinations(

Callers

nothing calls this directly

Calls 5

fixture_sessionFunction · 0.90
is_trueFunction · 0.90
compareMethod · 0.45
set_label_styleMethod · 0.45
__clause_element__Method · 0.45

Tested by

no test coverage detected