From 98a0b6ec1f7e95024c9e785d82086f4ec0cee664 Mon Sep 17 00:00:00 2001 From: Ludeeus Date: Sat, 22 Jan 2022 11:30:23 +0000 Subject: [PATCH] Fix test fixtures --- tests/common.py | 7 +++++-- tests/tasks/test_setup_frontend.py | 1 - 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/common.py b/tests/common.py index 6d466710270..63463b7a806 100644 --- a/tests/common.py +++ b/tests/common.py @@ -152,12 +152,15 @@ def async_create_task(coroutine): ssl_certificate=None, ssl_peer_certificate=None, ssl_key=None, + trusted_proxies=[], + ssl_profile="modern", + ) + + await hass.http.async_initialize( cors_origins=[], use_x_forwarded_for=False, - trusted_proxies=[], login_threshold=3, is_ban_enabled=False, - ssl_profile="modern", ) async def mock_async_start(): diff --git a/tests/tasks/test_setup_frontend.py b/tests/tasks/test_setup_frontend.py index 139b60fb625..97bef925380 100644 --- a/tests/tasks/test_setup_frontend.py +++ b/tests/tasks/test_setup_frontend.py @@ -1,7 +1,6 @@ # pylint: disable=missing-function-docstring,missing-module-docstring, protected-access from unittest.mock import AsyncMock, MagicMock, patch -from aiohttp.client import request from aresponses import ResponsesMockServer import pytest