Black
This commit is contained in:
1 parent
da05dfe708
commit
4de97abc3a
2676 files changed
+163166
-140084
No files matched your search
@@ -1,8 +1,7 @@
|
||||
"""The tests for the Google Pub/Sub component."""
|
||||
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):
|
||||
@@ -15,8 +14,8 @@ class TestDateTimeJSONEncoder(object):
|
||||
|
||||
def test_no_datetime(self):
|
||||
"""Test integer encoding."""
|
||||
assert victim().encode(42) == '42'
|
||||
assert victim().encode(42) == "42"
|
||||
|
||||
def test_nested(self):
|
||||
"""Test dictionary encoding."""
|
||||
assert victim().encode({'foo': 'bar'}) == '{"foo": "bar"}'
|
||||
assert victim().encode({"foo": "bar"}) == '{"foo": "bar"}'
|
||||
Reference in new issue
Block a user