tests: Skip binanceus websocket tests
binance.us volume is currently too low for this test to run reliably.
This commit is contained in:
@@ -73,6 +73,7 @@ EXCHANGES = {
|
|||||||
"hasQuoteVolume": True,
|
"hasQuoteVolume": True,
|
||||||
"timeframe": "1h",
|
"timeframe": "1h",
|
||||||
"futures": False,
|
"futures": False,
|
||||||
|
"skip_ws_tests": True,
|
||||||
"sample_order": [
|
"sample_order": [
|
||||||
{
|
{
|
||||||
"symbol": "SOLUSDT",
|
"symbol": "SOLUSDT",
|
||||||
@@ -423,14 +424,17 @@ def exchange_mode(request):
|
|||||||
def exchange_ws(request, exchange_conf, exchange_mode, class_mocker):
|
def exchange_ws(request, exchange_conf, exchange_mode, class_mocker):
|
||||||
class_mocker.patch("freqtrade.exchange.bybit.Bybit.additional_exchange_init")
|
class_mocker.patch("freqtrade.exchange.bybit.Bybit.additional_exchange_init")
|
||||||
exchange_conf["exchange"]["enable_ws"] = True
|
exchange_conf["exchange"]["enable_ws"] = True
|
||||||
|
exchange_param = EXCHANGES[request.param]
|
||||||
|
if exchange_param.get("skip_ws_tests"):
|
||||||
|
pytest.skip(f"{request.param} does not support websocket tests.")
|
||||||
if exchange_mode == "spot":
|
if exchange_mode == "spot":
|
||||||
exchange, name = get_exchange(request.param, exchange_conf)
|
exchange, name = get_exchange(request.param, exchange_conf)
|
||||||
pair = EXCHANGES[request.param]["pair"]
|
pair = exchange_param["pair"]
|
||||||
elif EXCHANGES[request.param].get("futures"):
|
elif exchange_param.get("futures"):
|
||||||
exchange, name = get_futures_exchange(
|
exchange, name = get_futures_exchange(
|
||||||
request.param, exchange_conf, class_mocker=class_mocker
|
request.param, exchange_conf, class_mocker=class_mocker
|
||||||
)
|
)
|
||||||
pair = EXCHANGES[request.param]["futures_pair"]
|
pair = exchange_param["futures_pair"]
|
||||||
else:
|
else:
|
||||||
pytest.skip("Exchange does not support futures.")
|
pytest.skip("Exchange does not support futures.")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user