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

Method test_union_init

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

Source from the content-addressed store, hash-verified

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"))
1893 s1 = select(a)
1894 s2 = select(a)
1895 s3 = s1.union(s2)
1896 s3.selected_columns
1897 q = column("q")
1898 a.append_column(q)
1899 s3._refresh_for_new_column(q)
1900 assert a.c.q in s3.selected_columns.q.proxy_set
1901
1902 def test_nested_join_uninit(self):
1903 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