Enables use_public_trades only in test_refresh_latest_trades

This commit is contained in:
Joe Schr
2024-05-15 14:57:22 +02:00
parent b9035da981
commit f87cd5daca
2 changed files with 3 additions and 2 deletions
-1
View File
@@ -593,7 +593,6 @@ def get_default_conf(testdatadir):
"DOGE/BTC", "DOGE/BTC",
"HOT/BTC", "HOT/BTC",
], ],
"use_public_trades": True,
}, },
"pairlists": [{"method": "StaticPairList"}], "pairlists": [{"method": "StaticPairList"}],
"telegram": { "telegram": {
+3 -1
View File
@@ -2407,7 +2407,9 @@ def test_refresh_latest_trades(mocker, default_conf, caplog, candle_type) -> Non
] ]
caplog.set_level(logging.DEBUG) caplog.set_level(logging.DEBUG)
exchange = get_patched_exchange(mocker, default_conf) use_trades_conf = default_conf
use_trades_conf["exchange"]["use_public_trades"] = True
exchange = get_patched_exchange(mocker, use_trades_conf)
exchange._api_async.fetch_trades = get_mock_coro(trades) exchange._api_async.fetch_trades = get_mock_coro(trades)
exchange._ft_has["exchange_has_overrides"]["fetchTrades"] = True exchange._ft_has["exchange_has_overrides"]["fetchTrades"] = True