Skip to content

Commit 5fe1bc0

Browse files
author
Henrique Tolentino
committed
Update workflow tests
1 parent c0f8475 commit 5fe1bc0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test_config_templates.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ def project() -> Project:
3838
)
3939
def test_configs(_config_file, project: Project):
4040
_config_dict = yaml.safe_load(open(_config_file).read())
41+
if _config_dict.get("version") == 2:
42+
resp = requests.post(
43+
f"{_cloud_url}/v2/workflows/validate",
44+
json=_config_dict,
45+
headers={"Authorization": _api_key},
46+
)
47+
else:
4148
resp = requests.post(
4249
f"{_cloud_url}/projects/{project.name}/models",
4350
json=_config_dict,

0 commit comments

Comments
 (0)