From 84abb57ebca125e25c27e98cc58f990481dea5e6 Mon Sep 17 00:00:00 2001 From: Joakim Plate Date: Thu, 1 Aug 2019 16:37:37 +0200 Subject: [PATCH] Fix test_install_existing_package (#25627) homeassistant.util.package.install_package is not a corutine. --- tests/test_requirements.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/test_requirements.py b/tests/test_requirements.py index 0c73e9f38f0..486374e3909 100644 --- a/tests/test_requirements.py +++ b/tests/test_requirements.py @@ -11,12 +11,7 @@ from homeassistant.requirements import ( _install, ) -from tests.common import ( - get_test_home_assistant, - MockModule, - mock_coro, - mock_integration, -) +from tests.common import get_test_home_assistant, MockModule, mock_integration class TestRequirements: @@ -77,7 +72,7 @@ class TestRequirements: async def test_install_existing_package(hass): """Test an install attempt on an existing package.""" with patch( - "homeassistant.util.package.install_package", return_value=mock_coro(True) + "homeassistant.util.package.install_package", return_value=True ) as mock_inst: assert await async_process_requirements( hass, "test_component", ["hello==1.0.0"]