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:
Cristhian Zanforlin Lousa 2025-03-22 22:41:19 -03:00 • committed by GitHub
commit e265fbe754
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 43 additions and 42 deletions

View file

@ -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):