Upgrade black to 20.8b1 (#39287)
This commit is contained in:
parent
0d7eec710c
commit
1c2ebdf307
574 changed files with 4389 additions and 1725 deletions
|
@ -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={},
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue