Skip to content

Commit

Permalink
Adjust tests to pipeline version removal
Browse files Browse the repository at this point in the history
  • Loading branch information
schustmi committed Jul 22, 2024
1 parent 994fa92 commit 9bff380
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/test_starter_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def generate_and_run_project(
"--training-pipeline",
"--feature-pipeline",
"--inference-pipeline",
"--no-cache"
"--no-cache",
]

try:
Expand All @@ -83,11 +83,15 @@ def generate_and_run_project(
) from e

# check the pipeline run is successful
for pipeline_name in ["training", "inference", "feature_engineering"]:
for pipeline_name, run_count in [
("training", 2),
("inference", 1),
("feature_engineering", 1),
]:
pipeline = Client().get_pipeline(pipeline_name)
assert pipeline
runs = pipeline.runs
assert len(runs) == 1
assert len(runs) == run_count
assert runs[0].status == ExecutionStatus.COMPLETED

# clean up
Expand Down

0 comments on commit 9bff380

Please sign in to comment.