mirror of
https://github.com/home-assistant/core.git
synced 2025-12-26 14:08:21 +00:00
More pylint 2 fixes (#15565)
## Description: More fixes flagged by pylint 2 that don't hurt to have before the actual pylint 2 upgrade (which I'll submit soon). ## Checklist: - [ ] The code change is tested and works locally. - [x] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**
This commit is contained in:
@@ -12,7 +12,7 @@ from tests.common import (
|
||||
get_test_home_assistant, get_test_instance_port, assert_setup_component)
|
||||
|
||||
|
||||
class TestSetupImageProcessing(object):
|
||||
class TestSetupImageProcessing:
|
||||
"""Test class for setup image processing."""
|
||||
|
||||
def setup_method(self):
|
||||
@@ -48,7 +48,7 @@ class TestSetupImageProcessing(object):
|
||||
assert self.hass.services.has_service(ip.DOMAIN, 'scan')
|
||||
|
||||
|
||||
class TestImageProcessing(object):
|
||||
class TestImageProcessing:
|
||||
"""Test class for image processing."""
|
||||
|
||||
def setup_method(self):
|
||||
@@ -109,7 +109,7 @@ class TestImageProcessing(object):
|
||||
assert state.state == '0'
|
||||
|
||||
|
||||
class TestImageProcessingAlpr(object):
|
||||
class TestImageProcessingAlpr:
|
||||
"""Test class for alpr image processing."""
|
||||
|
||||
def setup_method(self):
|
||||
@@ -211,7 +211,7 @@ class TestImageProcessingAlpr(object):
|
||||
assert event_data[0]['entity_id'] == 'image_processing.demo_alpr'
|
||||
|
||||
|
||||
class TestImageProcessingFace(object):
|
||||
class TestImageProcessingFace:
|
||||
"""Test class for face image processing."""
|
||||
|
||||
def setup_method(self):
|
||||
|
||||
@@ -11,7 +11,7 @@ from tests.common import (
|
||||
get_test_home_assistant, assert_setup_component, load_fixture, mock_coro)
|
||||
|
||||
|
||||
class TestMicrosoftFaceDetectSetup(object):
|
||||
class TestMicrosoftFaceDetectSetup:
|
||||
"""Test class for image processing."""
|
||||
|
||||
def setup_method(self):
|
||||
@@ -74,7 +74,7 @@ class TestMicrosoftFaceDetectSetup(object):
|
||||
assert self.hass.states.get('image_processing.test_local')
|
||||
|
||||
|
||||
class TestMicrosoftFaceDetect(object):
|
||||
class TestMicrosoftFaceDetect:
|
||||
"""Test class for image processing."""
|
||||
|
||||
def setup_method(self):
|
||||
|
||||
@@ -11,7 +11,7 @@ from tests.common import (
|
||||
get_test_home_assistant, assert_setup_component, load_fixture, mock_coro)
|
||||
|
||||
|
||||
class TestMicrosoftFaceIdentifySetup(object):
|
||||
class TestMicrosoftFaceIdentifySetup:
|
||||
"""Test class for image processing."""
|
||||
|
||||
def setup_method(self):
|
||||
@@ -75,7 +75,7 @@ class TestMicrosoftFaceIdentifySetup(object):
|
||||
assert self.hass.states.get('image_processing.test_local')
|
||||
|
||||
|
||||
class TestMicrosoftFaceIdentify(object):
|
||||
class TestMicrosoftFaceIdentify:
|
||||
"""Test class for image processing."""
|
||||
|
||||
def setup_method(self):
|
||||
|
||||
@@ -12,7 +12,7 @@ from tests.common import (
|
||||
get_test_home_assistant, assert_setup_component, load_fixture, mock_coro)
|
||||
|
||||
|
||||
class TestOpenAlprCloudSetup(object):
|
||||
class TestOpenAlprCloudSetup:
|
||||
"""Test class for image processing."""
|
||||
|
||||
def setup_method(self):
|
||||
@@ -103,7 +103,7 @@ class TestOpenAlprCloudSetup(object):
|
||||
setup_component(self.hass, ip.DOMAIN, config)
|
||||
|
||||
|
||||
class TestOpenAlprCloud(object):
|
||||
class TestOpenAlprCloud:
|
||||
"""Test class for image processing."""
|
||||
|
||||
def setup_method(self):
|
||||
|
||||
@@ -26,7 +26,7 @@ def mock_async_subprocess():
|
||||
return async_popen
|
||||
|
||||
|
||||
class TestOpenAlprLocalSetup(object):
|
||||
class TestOpenAlprLocalSetup:
|
||||
"""Test class for image processing."""
|
||||
|
||||
def setup_method(self):
|
||||
@@ -96,7 +96,7 @@ class TestOpenAlprLocalSetup(object):
|
||||
setup_component(self.hass, ip.DOMAIN, config)
|
||||
|
||||
|
||||
class TestOpenAlprLocal(object):
|
||||
class TestOpenAlprLocal:
|
||||
"""Test class for image processing."""
|
||||
|
||||
def setup_method(self):
|
||||
|
||||
Reference in New Issue
Block a user