mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 19:09:32 +00:00
Blank out discovery info (#56097)
This commit is contained in:
@@ -559,3 +559,20 @@ async def test_api_call_service_bad_data(hass, mock_api_client):
|
||||
"/api/services/test_domain/test_service", json={"hello": 5}
|
||||
)
|
||||
assert resp.status == 400
|
||||
|
||||
|
||||
async def test_api_get_discovery_info(hass, mock_api_client):
|
||||
"""Test the return of discovery info."""
|
||||
resp = await mock_api_client.get(const.URL_API_DISCOVERY_INFO)
|
||||
result = await resp.json()
|
||||
|
||||
assert result == {
|
||||
"base_url": "",
|
||||
"external_url": "",
|
||||
"installation_type": "",
|
||||
"internal_url": "",
|
||||
"location_name": "",
|
||||
"requires_api_password": True,
|
||||
"uuid": "",
|
||||
"version": "",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user