Add timeout to some tests

This commit is contained in:
Matthias 2024-06-03 20:57:15 +02:00
parent 79ffa66656
commit 0993d12955
2 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,7 @@ pytest-asyncio==0.23.7
pytest-cov==5.0.0 pytest-cov==5.0.0
pytest-mock==3.14.0 pytest-mock==3.14.0
pytest-random-order==1.1.1 pytest-random-order==1.1.1
pytest-timeout==2.3.1
pytest-xdist==3.6.1 pytest-xdist==3.6.1
isort==5.13.2 isort==5.13.2
# For datetime mocking # For datetime mocking

View File

@ -19,6 +19,7 @@ from tests.exchange_online.conftest import EXCHANGE_WS_FIXTURE_TYPE
@pytest.mark.longrun @pytest.mark.longrun
@pytest.mark.timeout(3 * 60)
class TestCCXTExchangeWs: class TestCCXTExchangeWs:
def test_ccxt_ohlcv(self, exchange_ws: EXCHANGE_WS_FIXTURE_TYPE, caplog, mocker): def test_ccxt_ohlcv(self, exchange_ws: EXCHANGE_WS_FIXTURE_TYPE, caplog, mocker):
exch, exchangename, pair = exchange_ws exch, exchangename, pair = exchange_ws