When I run assert_cte_equal I have to define all downstream tables even if they are not needed. I think this is just an issue in the checks not an actual runtime issue, so I propose a change in validate_all_input_mocks_for_query_provided so it also ignores downstream CTEs when running assert_cte_equal.
This would be a step forward in treating each CTE as a unit and being able to isolate every CTE and define the bare minimum to test it.