File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed
Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change 55import pandas as pd # noqa: TID253
66import pytest
77import time_machine
8- from pytest_mock .plugin import MockerFixture
98
109from sqlmesh .core import dialect as d
1110from sqlmesh .core .context import Context
1514 SqlModel ,
1615 load_sql_based_model ,
1716)
18- from sqlmesh .core .plan import PlanBuilder , SnapshotIntervals
17+ from sqlmesh .core .plan import SnapshotIntervals
1918from sqlmesh .core .snapshot import (
2019 SnapshotChangeCategory ,
2120)
2524pytestmark = pytest .mark .slow
2625
2726
28- @pytest .fixture (autouse = True )
29- def mock_choices (mocker : MockerFixture ):
30- mocker .patch ("sqlmesh.core.console.TerminalConsole._get_snapshot_change_category" )
31- mocker .patch ("sqlmesh.core.console.TerminalConsole._prompt_backfill" )
32-
33-
34- def plan_choice (plan_builder : PlanBuilder , choice : SnapshotChangeCategory ) -> None :
35- for snapshot in plan_builder .build ().snapshots .values ():
36- if not snapshot .version :
37- plan_builder .set_choice (snapshot , choice )
38-
39-
4027@time_machine .travel ("2023-01-08 15:00:00 UTC" )
4128@pytest .mark .parametrize (
4229 "context_fixture" ,
You can’t perform that action at this time.
0 commit comments