chore: ruff format updates

This commit is contained in:
Matthias
2025-01-13 18:04:48 +01:00
parent 01ce4e42c6
commit f1c5d4a970
36 changed files with 66 additions and 85 deletions
+2 -2
View File
@@ -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",
},
)
+1 -2
View File
@@ -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"
+1 -2
View File
@@ -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,
)