From 29df7499c5d69f8be6ea82d94af6b251c540fcd9 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 19 Jul 2025 08:30:10 +0200 Subject: [PATCH] chore: improve error output --- tests/exchange_online/test_ccxt_ws_compat.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/exchange_online/test_ccxt_ws_compat.py b/tests/exchange_online/test_ccxt_ws_compat.py index 6ab7600f4..ba9aa0f04 100644 --- a/tests/exchange_online/test_ccxt_ws_compat.py +++ b/tests/exchange_online/test_ccxt_ws_compat.py @@ -35,6 +35,7 @@ class TestCCXTExchangeWs: break sleep(1) + caplog.set_level(logging.DEBUG) res = exch.refresh_latest_ohlcv([pair_tf]) assert m_cand.call_count == 1 @@ -48,8 +49,9 @@ class TestCCXTExchangeWs: assert pair_tf in exch._exchange_ws._klines_scheduled assert res[pair_tf] is not None df1 = res[pair_tf] - caplog.set_level(logging.DEBUG) - assert df1.iloc[-1]["date"] == curr_candle + assert df1.iloc[-1]["date"] == curr_candle, ( + f"Expected {curr_candle}, got {df1.iloc[-1]['date']} for {pair_tf}, now: {dt_now()}" + ) # Wait until the next candle (might be up to 1 minute). while True: