There was an error while loading. Please reload this page.
1 parent 8995319 commit 608894eCopy full SHA for 608894e
test_cart_api.py
@@ -75,4 +75,9 @@ def test_post_cart_with_ai(self):
75
assert resp.status_code == HTTPStatus.OK
76
res = resp.json()
77
check.is_in('userId', res)
78
-
+
79
+ if input_data.get('products'):
80
+ check.equal(res['products'][0]['title'], input_data['products'][0]['title'])
81
+ check.equal(res['products'][0]['category'], input_data['products'][0]['category'])
82
+ else:
83
+ check.equal(res['products'], [])
0 commit comments