Removal of old style class definitions in tests (#33671)

This commit is contained in:
Franck Nijhof 2020-04-05 02:21:07 +02:00 committed by GitHub
parent 03dd92d51b
commit 262b01d632
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -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):

View File

@ -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):

View File

@ -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

View File

@ -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: