MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_compound_populates

Method test_compound_populates

test/sql/test_compiler.py:7690–7700  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

7688 """
7689
7690 def test_compound_populates(self):
7691 t = Table("t", MetaData(), Column("a", Integer), Column("b", Integer))
7692 stmt = select(t).union(select(t))
7693 comp = stmt.compile()
7694 eq_(
7695 comp._create_result_map(),
7696 {
7697 "a": ("a", (t.c.a, "a", "a", "t_a"), t.c.a.type, 0),
7698 "b": ("b", (t.c.b, "b", "b", "t_b"), t.c.b.type, 1),
7699 },
7700 )
7701
7702 def test_compound_not_toplevel_doesnt_populate(self):
7703 t = Table("t", MetaData(), Column("a", Integer), Column("b", Integer))

Callers

nothing calls this directly

Calls 8

TableClass · 0.90
MetaDataClass · 0.90
ColumnClass · 0.90
selectFunction · 0.90
eq_Function · 0.90
_create_result_mapMethod · 0.80
unionMethod · 0.45
compileMethod · 0.45

Tested by

no test coverage detected