MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _assert_labeled_table1_select

Method _assert_labeled_table1_select

test/sql/test_labels.py:245–267  ·  view source on GitHub ↗
(self, s)

Source from the content-addressed store, hash-verified

243 assert_raises(exceptions.IdentifierError, meth, eng)
244
245 def _assert_labeled_table1_select(self, s):
246 table1 = self.table1
247 compiled = s.compile(dialect=self._length_fixture())
248
249 assert set(
250 compiled._create_result_map()["some_large_named_table__2"][1]
251 ).issuperset(
252 [
253 "some_large_named_table_this_is_the_data_column",
254 "some_large_named_table__2",
255 table1.c.this_is_the_data_column,
256 ]
257 )
258
259 assert set(
260 compiled._create_result_map()["some_large_named_table__1"][1]
261 ).issuperset(
262 [
263 "some_large_named_table_this_is_the_primarykey_column",
264 "some_large_named_table__1",
265 table1.c.this_is_the_primarykey_column,
266 ]
267 )
268
269 def test_result_map_use_labels(self):
270 table1 = self.table1

Callers 2

test_result_map_limitMethod · 0.95

Calls 4

_length_fixtureMethod · 0.95
_create_result_mapMethod · 0.80
compileMethod · 0.45
issupersetMethod · 0.45

Tested by

no test coverage detected