mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 17:27:52 +00:00
Hass.io panel v2 (#11860)
* Update hassio.py * fix test * Update test_hassio.py
This commit is contained in:
parent
3417c6ad8d
commit
6df1fae447
@ -71,7 +71,8 @@ NO_TIMEOUT = {
|
||||
}
|
||||
|
||||
NO_AUTH = {
|
||||
re.compile(r'^app-(es5|latest)$'), re.compile(r'^addons/[^/]*/logo$')
|
||||
re.compile(r'^app-(es5|latest)/(index|hassio-app).html$'),
|
||||
re.compile(r'^addons/[^/]*/logo$')
|
||||
}
|
||||
|
||||
SCHEMA_NO_DATA = vol.Schema({})
|
||||
|
@ -384,7 +384,11 @@ def test_auth_required_forward_request(hassio_client):
|
||||
|
||||
|
||||
@asyncio.coroutine
|
||||
@pytest.mark.parametrize('build_type', ['es5', 'latest'])
|
||||
@pytest.mark.parametrize(
|
||||
'build_type', [
|
||||
'es5/index.html', 'es5/hassio-app.html', 'latest/index.html',
|
||||
'latest/hassio-app.html'
|
||||
])
|
||||
def test_forward_request_no_auth_for_panel(hassio_client, build_type):
|
||||
"""Test no auth needed for ."""
|
||||
response = MagicMock()
|
||||
|
Loading…
x
Reference in New Issue
Block a user