Update test

This commit is contained in:
zhudhjen 2024-08-15 12:28:32 -07:00
parent f80d13079b
commit cd67a7cd39

View file

@ -41,7 +41,6 @@ async def fixture_dashboard() -> DashboardTestHelper:
args = Mock( args = Mock(
ha_addon=True, ha_addon=True,
configuration=get_fixture_path("conf"), configuration=get_fixture_path("conf"),
port=0,
) )
os.environ["ESPHOME_DASHBOARD_PORT"] = str(port) os.environ["ESPHOME_DASHBOARD_PORT"] = str(port)
DASHBOARD.settings.parse_args(args) DASHBOARD.settings.parse_args(args)
@ -53,7 +52,6 @@ async def fixture_dashboard() -> DashboardTestHelper:
assert DASHBOARD.settings.using_password is False assert DASHBOARD.settings.using_password is False
assert DASHBOARD.settings.on_ha_addon is True assert DASHBOARD.settings.on_ha_addon is True
assert DASHBOARD.settings.using_auth is False assert DASHBOARD.settings.using_auth is False
assert int(DASHBOARD.settings.port) == port
task = asyncio.create_task(DASHBOARD.async_run()) task = asyncio.create_task(DASHBOARD.async_run())
client = AsyncHTTPClient() client = AsyncHTTPClient()
io_loop = IOLoop(make_current=False) io_loop = IOLoop(make_current=False)