MCPcopy
hub / github.com/marimo-team/marimo / test_with_cte

Method test_with_cte

tests/_ast/test_sql_visitor.py:577–584  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

575 assert find_sql_refs(sql) == {SQLRef(table="inner_table")}
576
577 def test_with_cte(self) -> None:
578 sql = """
579 WITH cte AS (
580 SELECT * FROM source_table
581 )
582 SELECT * FROM cte;
583 """
584 assert find_sql_refs(sql) == {SQLRef(table="source_table")}
585
586 def test_with_union(self) -> None:
587 sql = """

Callers

nothing calls this directly

Calls 2

find_sql_refsFunction · 0.90
SQLRefClass · 0.90

Tested by

no test coverage detected