We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9bf714d commit 2c466f7Copy full SHA for 2c466f7
1 file changed
tests/api_test.py
@@ -79,9 +79,9 @@ def _capture_product_id(
79
80
for key in ["id", "url"]:
81
value = data[0].get(key)
82
- if not isinstance(value[key], int):
+ if not isinstance(value, int):
83
pytest.fail(f"Catalog.products_list did not return a valid {key}.")
84
- ctx.state[f"autotest_product_{key}"] = value[key]
+ ctx.state[f"autotest_product_{key}"] = value
85
86
87
@autotest_depends_on(ClassCatalog.products_list)
0 commit comments