Fix network tests to use get_test_instance_port
This commit is contained in:
parent
74989f7941
commit
df361dc1e1
3 changed files with 21 additions and 3 deletions
|
@ -5,9 +5,11 @@ from homeassistant.core import callback
|
|||
from homeassistant.const import ATTR_ENTITY_PICTURE
|
||||
from homeassistant.bootstrap import setup_component
|
||||
from homeassistant.exceptions import HomeAssistantError
|
||||
import homeassistant.components.http as http
|
||||
import homeassistant.components.image_processing as ip
|
||||
|
||||
from tests.common import get_test_home_assistant, assert_setup_component
|
||||
from tests.common import (
|
||||
get_test_home_assistant, get_test_instance_port, assert_setup_component)
|
||||
|
||||
|
||||
class TestSetupImageProcessing(object):
|
||||
|
@ -53,6 +55,10 @@ class TestImageProcessing(object):
|
|||
"""Setup things to be run when tests are started."""
|
||||
self.hass = get_test_home_assistant()
|
||||
|
||||
setup_component(
|
||||
self.hass, http.DOMAIN,
|
||||
{http.DOMAIN: {http.CONF_SERVER_PORT: get_test_instance_port()}})
|
||||
|
||||
config = {
|
||||
ip.DOMAIN: {
|
||||
'platform': 'demo'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue