Skip to content

Commit d19bb9a

Browse files
committed
fix(tests): renaming fixture to be more clear
Signed-off-by: Cortland Goffena <30168413+cmgoffena13@users.noreply.github.com>
1 parent 7ad422c commit d19bb9a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎tests/cli/test_cli.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def create_example_project(temp_dir, template=ProjectTemplate.DEFAULT) -> None:
5959
)
6060

6161

62-
def add_unchanged_incremental_model_test(temp_dir) -> None:
62+
def add_incremental_model_test(temp_dir) -> None:
6363
with open(temp_dir / "tests" / "test_incremental_model.yaml", "w", encoding="utf-8") as f:
6464
f.write(
6565
"""
@@ -221,7 +221,7 @@ def test_plan_skip_tests(runner, tmp_path):
221221
def test_plan_no_changes_runs_tests_by_default(runner, tmp_path):
222222
create_example_project(tmp_path)
223223
init_prod_and_backfill(runner, tmp_path)
224-
add_unchanged_incremental_model_test(tmp_path)
224+
add_incremental_model_test(tmp_path)
225225

226226
result = runner.invoke(
227227
cli, ["--log-file-dir", tmp_path, "--paths", tmp_path, "plan", "--no-prompts"], input="\n"
@@ -255,7 +255,7 @@ def test_plan_test_changed_only_with_no_changes(runner, tmp_path):
255255
def test_plan_test_changed_only_runs_only_changed_model_tests(runner, tmp_path):
256256
create_example_project(tmp_path)
257257
init_prod_and_backfill(runner, tmp_path)
258-
add_unchanged_incremental_model_test(tmp_path)
258+
add_incremental_model_test(tmp_path)
259259

260260
full_model_path = tmp_path / "models" / "full_model.sql"
261261
full_model_path.write_text(
@@ -283,7 +283,7 @@ def test_plan_test_changed_only_runs_only_changed_model_tests(runner, tmp_path):
283283
def test_plan_select_model_test_changed_only_scopes_tests(runner, tmp_path):
284284
create_example_project(tmp_path)
285285
init_prod_and_backfill(runner, tmp_path)
286-
add_unchanged_incremental_model_test(tmp_path)
286+
add_incremental_model_test(tmp_path)
287287

288288
full_model_path = tmp_path / "models" / "full_model.sql"
289289
full_model_path.write_text(

0 commit comments

Comments
 (0)