Reorganize HTTP component (#4575)
* Move HTTP to own folder * Break HTTP into middlewares * Lint * Split tests per middleware * Clean up HTTP tests * Make HomeAssistantViews more stateless * Lint * Make HTTP setup async
This commit is contained in:
1 parent
58b85b2e0e
commit
32ffd006fa
35 files changed
+1318
-1084
No files matched your search
@@ -6,7 +6,7 @@ import unittest
|
||||
import requests
|
||||
|
||||
import homeassistant.bootstrap as bootstrap
|
||||
from homeassistant.components import frontend, http
|
||||
from homeassistant.components import http
|
||||
from homeassistant.const import HTTP_HEADER_HA_AUTH
|
||||
|
||||
from tests.common import get_test_instance_port, get_test_home_assistant
|
||||
@@ -45,7 +45,6 @@ def setUpModule():
|
||||
def tearDownModule():
|
||||
"""Stop everything that was started."""
|
||||
hass.stop()
|
||||
frontend.PANELS = {}
|
||||
|
||||
|
||||
class TestFrontend(unittest.TestCase):
|
||||
|
||||
Reference in new issue
Block a user