MCPcopy Index your code
hub / github.com/sqlalchemy/sqlalchemy / test_union_uninit

Method test_union_uninit

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

Source from the content-addressed store, hash-verified

1861 assert "a_q" not in s.c
1862
1863 def test_union_uninit(self):
1864 a = table("a", column("x"))
1865 s1 = select(a)
1866 s2 = select(a)
1867 s3 = s1.union(s2)
1868 q = column("q")
1869 a.append_column(q)
1870 s3._refresh_for_new_column(q)
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"))

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