MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_prefixes

Method test_prefixes

test/sql/test_external_traversal.py:2774–2787  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2772 )
2773
2774 def test_prefixes(self):
2775 s = t1.select()
2776 self.assert_compile(
2777 s, "SELECT table1.col1, table1.col2, table1.col3 FROM table1"
2778 )
2779 select_copy = s.prefix_with("FOOBER")
2780 self.assert_compile(
2781 select_copy,
2782 "SELECT FOOBER table1.col1, table1.col2, "
2783 "table1.col3 FROM table1",
2784 )
2785 self.assert_compile(
2786 s, "SELECT table1.col1, table1.col2, table1.col3 FROM table1"
2787 )
2788
2789 def test_execution_options(self):
2790 s = select().execution_options(foo="bar")

Callers

nothing calls this directly

Calls 3

assert_compileMethod · 0.80
prefix_withMethod · 0.80
selectMethod · 0.45

Tested by

no test coverage detected