mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Update hash regex for frontend file in tests (#131742)
This commit is contained in:
parent
ae34a6b375
commit
e8975cffe6
@ -166,7 +166,7 @@ async def test_frontend_and_static(mock_http_client: TestClient) -> None:
|
||||
text = await resp.text()
|
||||
|
||||
# Test we can retrieve frontend.js
|
||||
frontendjs = re.search(r"(?P<app>\/frontend_es5\/app.[A-Za-z0-9_-]{11}.js)", text)
|
||||
frontendjs = re.search(r"(?P<app>\/frontend_es5\/app.[A-Za-z0-9_-]{16}.js)", text)
|
||||
|
||||
assert frontendjs is not None, text
|
||||
resp = await mock_http_client.get(frontendjs.groups(0)[0])
|
||||
@ -689,7 +689,7 @@ async def test_auth_authorize(mock_http_client: TestClient) -> None:
|
||||
|
||||
# Test we can retrieve authorize.js
|
||||
authorizejs = re.search(
|
||||
r"(?P<app>\/frontend_latest\/authorize.[A-Za-z0-9_-]{11}.js)", text
|
||||
r"(?P<app>\/frontend_latest\/authorize.[A-Za-z0-9_-]{16}.js)", text
|
||||
)
|
||||
|
||||
assert authorizejs is not None, text
|
||||
|
Loading…
x
Reference in New Issue
Block a user