Skip to content

Commit 93ee156

Browse files
committed
test fixes
1 parent 9315bd7 commit 93ee156

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/operators/forecast/test_errors.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,12 @@ def test_what_if_analysis(operator_setup, model):
767767
)
768768
yaml_i["spec"]["horizon"] = 10
769769
yaml_i["spec"]["model"] = model
770-
yaml_i["spec"]["what_if_analysis"] = {"model_name": f"model_{model}"}
770+
yaml_i["spec"]["what_if_analysis"] = {
771+
"model_name": f"model_{model}",
772+
"model_display_name": f"test_{model}",
773+
"project_id": "test_project_id",
774+
"compartment_id": "test_compartment_id"
775+
}
771776

772777
run_yaml(
773778
tmpdirname=tmpdirname,
@@ -776,7 +781,9 @@ def test_what_if_analysis(operator_setup, model):
776781
test_metrics_check=False,
777782
)
778783
report_path = f"{output_data_path}/report.html"
784+
deployment_metadata = f"{output_data_path}/deployment_info.json"
779785
assert os.path.exists(report_path), f"Report file not found at {report_path}"
786+
assert os.path.exists(deployment_metadata), f"Deployment info file not found at {deployment_metadata}"
780787

781788
if __name__ == "__main__":
782789
pass

0 commit comments

Comments
 (0)