mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Removal of old style class definitions in tests (#33671)
This commit is contained in:
parent
03dd92d51b
commit
262b01d632
@ -4,7 +4,7 @@ from datetime import datetime
|
|||||||
from homeassistant.components.google_pubsub import DateTimeJSONEncoder as victim
|
from homeassistant.components.google_pubsub import DateTimeJSONEncoder as victim
|
||||||
|
|
||||||
|
|
||||||
class TestDateTimeJSONEncoder(object):
|
class TestDateTimeJSONEncoder:
|
||||||
"""Bundle for DateTimeJSONEncoder tests."""
|
"""Bundle for DateTimeJSONEncoder tests."""
|
||||||
|
|
||||||
def test_datetime(self):
|
def test_datetime(self):
|
||||||
|
@ -136,7 +136,7 @@ DEFAULT_CONFIG = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class JsonValidator(object):
|
class JsonValidator:
|
||||||
"""Helper to compare JSON."""
|
"""Helper to compare JSON."""
|
||||||
|
|
||||||
def __init__(self, jsondata):
|
def __init__(self, jsondata):
|
||||||
|
@ -12,7 +12,7 @@ UPNP_FRIENDLY_NAME = "My Roku 3"
|
|||||||
UPNP_SERIAL = "1GU48T017973"
|
UPNP_SERIAL = "1GU48T017973"
|
||||||
|
|
||||||
|
|
||||||
class MockDeviceInfo(object):
|
class MockDeviceInfo:
|
||||||
"""Mock DeviceInfo for Roku."""
|
"""Mock DeviceInfo for Roku."""
|
||||||
|
|
||||||
model_name = NAME
|
model_name = NAME
|
||||||
|
@ -47,7 +47,7 @@ RESPONSE_TOKEN = 1234
|
|||||||
PIN = "abcd"
|
PIN = "abcd"
|
||||||
|
|
||||||
|
|
||||||
class MockStartPairingResponse(object):
|
class MockStartPairingResponse:
|
||||||
"""Mock Vizio start pairing response."""
|
"""Mock Vizio start pairing response."""
|
||||||
|
|
||||||
def __init__(self, ch_type: int, token: int) -> None:
|
def __init__(self, ch_type: int, token: int) -> None:
|
||||||
@ -56,7 +56,7 @@ class MockStartPairingResponse(object):
|
|||||||
self.token = token
|
self.token = token
|
||||||
|
|
||||||
|
|
||||||
class MockCompletePairingResponse(object):
|
class MockCompletePairingResponse:
|
||||||
"""Mock Vizio complete pairing response."""
|
"""Mock Vizio complete pairing response."""
|
||||||
|
|
||||||
def __init__(self, auth_token: str) -> None:
|
def __init__(self, auth_token: str) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user