Skip to content

Commit 8b751db

Browse files
committed
Add test
1 parent 58acac0 commit 8b751db

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/cli/test_cli.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ def test_plan_no_config(runner, tmp_path):
173173
assert "Error: SQLMesh project config could not be found" in result.output
174174

175175

176+
@time_machine.travel(FREEZE_TIME)
176177
def test_plan(runner, tmp_path):
177178
create_example_project(tmp_path)
178179

@@ -183,6 +184,12 @@ def test_plan(runner, tmp_path):
183184
cli, ["--log-file-dir", tmp_path, "--paths", tmp_path, "plan"], input="y\n"
184185
)
185186
assert_plan_success(result)
187+
# 'Models needing backfill' section and eval progress bar should display the same inclusive intervals
188+
assert "sqlmesh_example.incremental_model: [2020-01-01 - 2022-12-31]" in result.output
189+
assert (
190+
"sqlmesh_example.incremental_model [insert 2020-01-01 -\n2022-12-31]"
191+
in result.output
192+
)
186193

187194

188195
def test_plan_skip_tests(runner, tmp_path):

0 commit comments

Comments
 (0)