mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-11-10 03:19:37 +00:00
Migrate to python 3.8 (#1824)
* Migrate to python 3.8 * Fix tests on Py38 * cleanup tests Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
@@ -5,8 +5,6 @@ import pytest
|
||||
|
||||
from supervisor.bootstrap import initialize_coresys
|
||||
|
||||
from tests.common import mock_coro
|
||||
|
||||
# pylint: disable=redefined-outer-name
|
||||
|
||||
|
||||
@@ -21,8 +19,7 @@ def docker():
|
||||
async def coresys(loop, docker):
|
||||
"""Create a CoreSys Mock."""
|
||||
with patch("supervisor.bootstrap.initialize_system_data"), patch(
|
||||
"supervisor.bootstrap.fetch_timezone",
|
||||
return_value=mock_coro(return_value="Europe/Zurich"),
|
||||
"supervisor.bootstrap.fetch_timezone", return_value="Europe/Zurich",
|
||||
):
|
||||
coresys_obj = await initialize_coresys()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user