test: limit live futures tests to actual futures exchanges
This commit is contained in:
@@ -534,6 +534,8 @@ EXCHANGES = {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EXCHANGES_FUTURES = [exch for exch, params in EXCHANGES.items() if params.get("futures")]
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="class")
|
@pytest.fixture(scope="class")
|
||||||
def exchange_conf():
|
def exchange_conf():
|
||||||
@@ -603,7 +605,7 @@ def exchange(request, exchange_conf, class_mocker):
|
|||||||
exchange.close()
|
exchange.close()
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(params=EXCHANGES, scope="class")
|
@pytest.fixture(params=EXCHANGES_FUTURES, scope="class")
|
||||||
def exchange_futures(request, exchange_conf, class_mocker):
|
def exchange_futures(request, exchange_conf, class_mocker):
|
||||||
exchange, name = get_futures_exchange(request.param, exchange_conf, class_mocker)
|
exchange, name = get_futures_exchange(request.param, exchange_conf, class_mocker)
|
||||||
yield exchange, name
|
yield exchange, name
|
||||||
|
|||||||
Reference in New Issue
Block a user