Skip to content

Commit 2cc96c7

Browse files
authored
Fix: Fix hardcoded date in example project init test (#3759)
1 parent ef7893d commit 2cc96c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/cli/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ def test_init_project_dialects(runner, tmp_path):
963963
init_example_project(tmp_path, dialect=dialect)
964964

965965
config_start = f"gateways:\n dev:\n connection:\n # Visit https://sqlmesh.readthedocs.io/en/stable/integrations/engines/{dialect}/#connection-options for more information on configuring the connection to your execution engine.\n type: {dialect}\n "
966-
config_end = f"\n\n\ndefault_gateway: dev\n\nmodel_defaults:\n dialect: {dialect}\n start: 2025-01-29\n"
966+
config_end = f"\n\n\ndefault_gateway: dev\n\nmodel_defaults:\n dialect: {dialect}\n start: {yesterday_ds()}\n"
967967

968968
with open(tmp_path / "config.yaml") as file:
969969
config = file.read()

0 commit comments

Comments
 (0)