chore: ruff format updates
This commit is contained in:
@@ -284,7 +284,7 @@ def test_api_token_login(botclient):
|
||||
rc = client.get(
|
||||
f"{BASE_URI}/count",
|
||||
headers={
|
||||
"Authorization": f'Bearer {rc.json()["access_token"]}',
|
||||
"Authorization": f"Bearer {rc.json()['access_token']}",
|
||||
"Origin": "http://example.com",
|
||||
},
|
||||
)
|
||||
@@ -299,7 +299,7 @@ def test_api_token_refresh(botclient):
|
||||
f"{BASE_URI}/token/refresh",
|
||||
data=None,
|
||||
headers={
|
||||
"Authorization": f'Bearer {rc.json()["refresh_token"]}',
|
||||
"Authorization": f"Bearer {rc.json()['refresh_token']}",
|
||||
"Origin": "http://example.com",
|
||||
},
|
||||
)
|
||||
|
||||
@@ -2876,8 +2876,7 @@ async def test_telegram_list_custom_data(default_conf_usdt, update, ticker, fee,
|
||||
assert msg_mock.call_count == 3
|
||||
assert "Found custom-data entries: " in msg_mock.call_args_list[0][0][0]
|
||||
assert (
|
||||
"*Key:* `test_int`\n*ID:* `1`\n*Trade ID:* `1`\n*Type:* `int`\n"
|
||||
"*Value:* `1`\n*Create Date:*"
|
||||
"*Key:* `test_int`\n*ID:* `1`\n*Trade ID:* `1`\n*Type:* `int`\n*Value:* `1`\n*Create Date:*"
|
||||
) in msg_mock.call_args_list[1][0][0]
|
||||
assert (
|
||||
"*Key:* `test_dict`\n*ID:* `2`\n*Trade ID:* `1`\n*Type:* `dict`\n"
|
||||
|
||||
@@ -383,8 +383,7 @@ def test_exception_send_msg(default_conf, mocker, caplog):
|
||||
}
|
||||
webhook.send_msg(msg)
|
||||
assert log_has(
|
||||
"Problem calling Webhook. Please check your webhook configuration. "
|
||||
"Exception: 'DEADBEEF'",
|
||||
"Problem calling Webhook. Please check your webhook configuration. Exception: 'DEADBEEF'",
|
||||
caplog,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user