test: fix outdated components (nightly fix) (#7230)
📝 (test_api_request_component.py): update assertion to match changes in the JSON response structure
This commit is contained in:
parent
6b3f1870c2
commit
e265fbe754
2 changed files with 43 additions and 42 deletions
|
|
@ -78,8 +78,9 @@ class TestAPIRequestComponent(ComponentTestBaseWithoutClient):
|
|||
|
||||
assert isinstance(result, Data)
|
||||
assert result.data["source"] == url
|
||||
assert "key" in result.data
|
||||
assert result.data["key"] == "value"
|
||||
# The JSON response is nested in the 'result' key
|
||||
assert "result" in result.data
|
||||
assert result.data["result"]["key"] == "value"
|
||||
|
||||
@respx.mock
|
||||
async def test_make_request_with_metadata(self, component):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue