Skip to content

Commit ec43f67

Browse files
committed
Fix example project full model test filename
1 parent 2eb6e52 commit ec43f67

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

sqlmesh/cli/project_init.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def _gen_example_objects(schema_name: str) -> ExampleObjects:
243243
item_id < 0
244244
"""
245245

246-
tests["test_example_full_model"] = f"""test_example_full_model:
246+
tests["test_full_model"] = f"""test_example_full_model:
247247
model: {full_model_name}
248248
inputs:
249249
{incremental_model_name}:

tests/cli/test_cli.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,9 @@ def test_dlt_filesystem_pipeline(tmp_path):
914914
info = filesystem_pipeline.run([{"item_id": 1}], table_name="equipment")
915915
assert not info.has_failed_jobs
916916

917-
init_example_project(tmp_path, "athena", ProjectTemplate.DLT, "filesystem_pipeline")
917+
init_example_project(
918+
tmp_path, "athena", template=ProjectTemplate.DLT, pipeline="filesystem_pipeline"
919+
)
918920

919921
# Validate generated sqlmesh config and models
920922
config_path = tmp_path / "config.yaml"
@@ -1014,12 +1016,18 @@ def test_dlt_pipeline(runner, tmp_path):
10141016
# This should fail since it won't be able to locate the pipeline in this path
10151017
with pytest.raises(ClickException, match=r".*Could not attach to pipeline*"):
10161018
init_example_project(
1017-
tmp_path, "duckdb", ProjectTemplate.DLT, "sushi", dlt_path="./dlt2/pipelines"
1019+
tmp_path,
1020+
"duckdb",
1021+
template=ProjectTemplate.DLT,
1022+
pipeline="sushi",
1023+
dlt_path="./dlt2/pipelines",
10181024
)
10191025

10201026
# By setting the pipelines path where the pipeline directory is located, it should work
10211027
dlt_path = get_dlt_pipelines_dir()
1022-
init_example_project(tmp_path, "duckdb", ProjectTemplate.DLT, "sushi", dlt_path=dlt_path)
1028+
init_example_project(
1029+
tmp_path, "duckdb", template=ProjectTemplate.DLT, pipeline="sushi", dlt_path=dlt_path
1030+
)
10231031

10241032
expected_config = f"""# --- Gateway Connection ---
10251033
gateways:

tests/core/test_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2737,7 +2737,7 @@ def test_timestamp_normalization() -> None:
27372737

27382738
@use_terminal_console
27392739
def test_disable_test_logging_if_no_tests_found(mocker: MockerFixture, tmp_path: Path) -> None:
2740-
init_example_project(tmp_path, dialect="duckdb")
2740+
init_example_project(tmp_path, engine_type="duckdb")
27412741

27422742
config = Config(
27432743
default_connection=DuckDBConnectionConfig(),

0 commit comments

Comments
 (0)