Skip to content

Commit 2c466f7

Browse files
committed
fix
1 parent 9bf714d commit 2c466f7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/api_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ def _capture_product_id(
7979

8080
for key in ["id", "url"]:
8181
value = data[0].get(key)
82-
if not isinstance(value[key], int):
82+
if not isinstance(value, int):
8383
pytest.fail(f"Catalog.products_list did not return a valid {key}.")
84-
ctx.state[f"autotest_product_{key}"] = value[key]
84+
ctx.state[f"autotest_product_{key}"] = value
8585

8686

8787
@autotest_depends_on(ClassCatalog.products_list)

0 commit comments

Comments
 (0)