Migrate to cherrypy wsgi from eventlet (#2387)
This commit is contained in:
1 parent
7582eb9f63
commit
d1f4901d53
13 files changed
+168
-153
No files matched your search
@@ -1,8 +1,8 @@
|
||||
"""The tests the for Locative device tracker platform."""
|
||||
import time
|
||||
import unittest
|
||||
from unittest.mock import patch
|
||||
|
||||
import eventlet
|
||||
import requests
|
||||
|
||||
from homeassistant import bootstrap, const
|
||||
@@ -32,12 +32,9 @@ def setUpModule(): # pylint: disable=invalid-name
|
||||
bootstrap.setup_component(hass, http.DOMAIN, {
|
||||
http.DOMAIN: {
|
||||
http.CONF_SERVER_PORT: SERVER_PORT
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
# Set up API
|
||||
bootstrap.setup_component(hass, 'api')
|
||||
|
||||
# Set up device tracker
|
||||
bootstrap.setup_component(hass, device_tracker.DOMAIN, {
|
||||
device_tracker.DOMAIN: {
|
||||
@@ -46,7 +43,7 @@ def setUpModule(): # pylint: disable=invalid-name
|
||||
})
|
||||
|
||||
hass.start()
|
||||
eventlet.sleep(0.05)
|
||||
time.sleep(0.05)
|
||||
|
||||
|
||||
def tearDownModule(): # pylint: disable=invalid-name
|
||||
|
||||
Reference in new issue
Block a user