Skip to content

Commit

Permalink
Fix test_install_existing_package (home-assistant#25627)
Browse files Browse the repository at this point in the history
homeassistant.util.package.install_package is not
a corutine.
  • Loading branch information
elupus authored and andrewsayre committed Aug 1, 2019
1 parent 61c6838 commit 84abb57
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tests/test_requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,7 @@
_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:
Expand Down Expand Up @@ -77,7 +72,7 @@ def test_requirement_installed_in_deps(
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"]
Expand Down

0 comments on commit 84abb57

Please sign in to comment.