refactor: simplify ws exchange handling

This commit is contained in:
Matthias
2025-05-10 13:30:26 +02:00
parent 5f907d4219
commit 8dc278f1a0
2 changed files with 4 additions and 8 deletions

View File

@@ -599,7 +599,7 @@ def exchange_ws(request, exchange_conf, exchange_mode, class_mocker):
else:
pytest.skip("Exchange does not support futures.")
if not exchange._has_watch_ohlcv:
if not exchange._exchange_ws:
pytest.skip("Exchange does not support watch_ohlcv.")
yield exchange, name, pair
exchange.close()