Upgrade black to 20.8b1 (#39287)

This commit is contained in:
Franck Nijhof 2020-08-27 13:56:20 +02:00 committed by GitHub
parent 0d7eec710c
commit 1c2ebdf307
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
574 changed files with 4389 additions and 1725 deletions

View file

@ -61,7 +61,8 @@ def mock_connection(
auth_endpoint = f"{BASE_ENDPOINT}{AUTH_ENDPOINT}"
if not auth_fail and not auth_timeout:
aioclient_mock.post(
auth_endpoint, json={"token": "token123"},
auth_endpoint,
json={"token": "token123"},
)
elif auth_fail:
aioclient_mock.post(
@ -73,7 +74,8 @@ def mock_connection(
aioclient_mock.post(auth_endpoint, exc=asyncio.TimeoutError)
aioclient_mock.post(
f"{BASE_ENDPOINT}{METER_ENDPOINT}", json=load_smt_fixture("meter"),
f"{BASE_ENDPOINT}{METER_ENDPOINT}",
json=load_smt_fixture("meter"),
)
aioclient_mock.post(f"{BASE_ENDPOINT}{OD_READ_ENDPOINT}", json={"data": None})
if not bad_reading:
@ -83,7 +85,8 @@ def mock_connection(
)
else:
aioclient_mock.post(
f"{BASE_ENDPOINT}{LATEST_OD_READ_ENDPOINT}", json={},
f"{BASE_ENDPOINT}{LATEST_OD_READ_ENDPOINT}",
json={},
)