MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_union_init

Method test_union_init

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

Source from the content-addressed store, hash-verified

1871 assert a.c.q in s3.selected_columns.q.proxy_set
1872
1873 def test_union_init(self):
1874 a = table("a", column("x"))
1875 s1 = select(a)
1876 s2 = select(a)
1877 s3 = s1.union(s2)
1878 s3.selected_columns
1879 q = column("q")
1880 a.append_column(q)
1881 s3._refresh_for_new_column(q)
1882 assert a.c.q in s3.selected_columns.q.proxy_set
1883
1884 def test_nested_join_uninit(self):
1885 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