Skip to content

Commit e24077e

Browse files
author
Henrique Tolentino
committed
Also log in "200 with error" responses
1 parent 241b51b commit e24077e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test_config_templates.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def test_configs(_config_file, project: Project):
5252
params={"dry_run": "yes"},
5353
headers={"Authorization": _api_key},
5454
)
55-
if resp.status_code != 200:
55+
if resp.status_code != 200 or "error" in resp.json():
5656
print(f"Error for {_cloud_url}, got response: {resp.text}")
5757
assert resp.status_code == 200 and "error" not in resp.json()
5858

@@ -74,7 +74,7 @@ def test_task_configs(_config_file, project: Project):
7474
headers={"Authorization": _api_key},
7575
)
7676

77-
if resp.status_code != 200:
77+
if resp.status_code != 200 or "error" in resp.json():
7878
print(f"Error for {_cloud_url}, got response: {resp.text}")
7979
assert resp.status_code == 200 and "error" not in resp.json()
8080

0 commit comments

Comments
 (0)