Cleanup http (#12424)
* Clean up HTTP component * Clean up HTTP mock * Remove unused import * Fix test * Lint
This commit is contained in:
1 parent
ad8fe8a93a
commit
f32911d036
28 files changed
+811
-1014
No files matched your search
@@ -9,7 +9,7 @@ from uvcclient import nvr
|
||||
|
||||
from homeassistant.setup import setup_component
|
||||
from homeassistant.components.camera import uvc
|
||||
from tests.common import get_test_home_assistant, mock_http_component
|
||||
from tests.common import get_test_home_assistant
|
||||
|
||||
|
||||
class TestUVCSetup(unittest.TestCase):
|
||||
@@ -18,7 +18,6 @@ class TestUVCSetup(unittest.TestCase):
|
||||
def setUp(self):
|
||||
"""Setup things to be run when tests are started."""
|
||||
self.hass = get_test_home_assistant()
|
||||
mock_http_component(self.hass)
|
||||
|
||||
def tearDown(self):
|
||||
"""Stop everything that was started."""
|
||||
|
||||
Reference in new issue
Block a user