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

Method test_union_uninit

test/sql/test_selectable.py:1881–1889  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1879 assert "a_q" not in s.c
1880
1881 def test_union_uninit(self):
1882 a = table("a", column("x"))
1883 s1 = select(a)
1884 s2 = select(a)
1885 s3 = s1.union(s2)
1886 q = column("q")
1887 a.append_column(q)
1888 s3._refresh_for_new_column(q)
1889 assert a.c.q in s3.selected_columns.q.proxy_set
1890
1891 def test_union_init(self):
1892 a = table("a", column("x"))

Callers

nothing calls this directly

Calls 6

tableFunction · 0.90
columnFunction · 0.90
selectFunction · 0.90
unionMethod · 0.45
append_columnMethod · 0.45

Tested by

no test coverage detected