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
@@ -20,7 +20,7 @@ from tests.exchange.test_exchange import ccxt_exceptionhandlers
)
def test_create_stoploss_order_kucoin(default_conf, mocker, limitratio, expected, side, order_type):
api_mock = MagicMock()
order_id = f"test_prod_buy_{randint(0, 10 ** 6)}"
order_id = f"test_prod_buy_{randint(0, 10**6)}"
api_mock.create_order = MagicMock(return_value={"id": order_id, "info": {"foo": "bar"}})
default_conf["dry_run"] = False
@@ -154,7 +154,7 @@ def test_stoploss_adjust_kucoin(mocker, default_conf):
)
def test_kucoin_create_order(default_conf, mocker, side, ordertype, rate):
api_mock = MagicMock()
order_id = f"test_prod_{side}_{randint(0, 10 ** 6)}"
order_id = f"test_prod_{side}_{randint(0, 10**6)}"
api_mock.create_order = MagicMock(
return_value={"id": order_id, "info": {"foo": "bar"}, "symbol": "XRP/USDT", "amount": 1}
)