Skip to content

Commit 6844413

Browse files
Fix: Ensure stale db is removed from previous failed test (#3749)
1 parent 32cdea2 commit 6844413

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/cli/test_cli.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,10 +782,14 @@ def test_dlt_pipeline_errors(runner, tmp_path):
782782
def test_plan_dlt(runner, tmp_path):
783783
root_dir = path.abspath(getcwd())
784784
pipeline_path = root_dir + "/examples/sushi_dlt/sushi_pipeline.py"
785+
dataset_path = root_dir + "/sushi.duckdb"
786+
787+
if path.exists(dataset_path):
788+
remove(dataset_path)
789+
785790
with open(pipeline_path) as file:
786791
exec(file.read())
787792

788-
dataset_path = root_dir + "/sushi.duckdb"
789793
init_example_project(tmp_path, "duckdb", ProjectTemplate.DLT, "sushi")
790794

791795
expected_config = f"""gateways:

0 commit comments

Comments
 (0)