MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_froms_accessors

Method test_froms_accessors

test/sql/test_selectable.py:847–856  ·  view source on GitHub ↗

tests for #6808

(
        self, cols_expr, select_from, exp_final_froms, exp_cc_froms
    )

Source from the content-addressed store, hash-verified

845 ),
846 )
847 def test_froms_accessors(
848 self, cols_expr, select_from, exp_final_froms, exp_cc_froms
849 ):
850 """tests for #6808"""
851 s1 = select(*cols_expr).select_from(*select_from)
852
853 for ff, efp in zip_longest(s1.get_final_froms(), exp_final_froms):
854 assert ff.compare(efp)
855
856 eq_(s1.columns_clause_froms, exp_cc_froms)
857
858 def test_scalar_subquery_from_subq_same_source(self):
859 s1 = select(table1.c.col1)

Callers

nothing calls this directly

Calls 5

selectFunction · 0.90
eq_Function · 0.90
get_final_fromsMethod · 0.80
select_fromMethod · 0.45
compareMethod · 0.45

Tested by

no test coverage detected