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