Skip to content

Commit 8dd0704

Browse files
change assert statements
1 parent a508b68 commit 8dd0704

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/unitary/with_extras/aqua/test_common_handler.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ def test_raise_not_compatible_error(self):
5858
reload(ads.aqua)
5959
reload(ads.aqua.extension.common_handler)
6060
response = self.fetch("/hello", method="GET")
61+
body = json.loads(response.body)
62+
assert body["status"] == 404
6163
assert (
62-
json.loads(response.body)["message"]
63-
== "Authorization Failed: The resource you're looking for isn't accessible."
64+
body["reason"]
65+
== "The AI Quick actions extension is not compatible in the given region."
6466
)

0 commit comments

Comments
 (0)