Enables use_public_trades only in test_refresh_latest_trades
This commit is contained in:
@@ -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": {
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user