Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ isort==7.0.0
time-machine==3.2.0

# Convert jupyter notebooks to markdown documents
nbconvert==7.16.6
nbconvert==7.17.0

# mypy types
scipy-stubs==1.17.0.2 # keep in sync with `scipy` in `requirements-hyperopt.txt`
Expand Down
4 changes: 2 additions & 2 deletions tests/exchange/test_exchange_ws.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ async def wait_for_condition(condition_func, timeout_=5.0, check_interval=0.01):
except TimeoutError:
return False

ccxt_object.un_watch_ohlcv_for_symbols = AsyncMock(side_effect=NotSupported)
ccxt_object.un_watch_ohlcv_for_symbols = AsyncMock(side_effect=[NotSupported, ValueError])
ccxt_object.watch_ohlcv = AsyncMock(side_effect=controlled_sleeper)
ccxt_object.close = AsyncMock()
time_machine.move_to("2024-11-01 01:00:02 +00:00")
Expand Down Expand Up @@ -138,7 +138,7 @@ async def wait_for_condition(condition_func, timeout_=5.0, check_interval=0.01):
}

# Cleanup happened.
ccxt_object.un_watch_ohlcv_for_symbols = AsyncMock(side_effect=ValueError)
# Triggers 2nd call to un_watch_ohlcv_for_symbols which raises ValueError
exchange_ws.schedule_ohlcv("ETH/BTC", "1m", CandleType.SPOT)

# Verify final state
Expand Down
Loading