From 9ea249180a1e82d7994a4ebf65678c2d0472c06b Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 8 Oct 2025 06:42:53 +0200 Subject: [PATCH] test: add annotation line test --- tests/rpc/test_rpc_apiserver.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tests/rpc/test_rpc_apiserver.py b/tests/rpc/test_rpc_apiserver.py index 88437fd03..58e688bb4 100644 --- a/tests/rpc/test_rpc_apiserver.py +++ b/tests/rpc/test_rpc_apiserver.py @@ -1901,7 +1901,18 @@ def test_api_pair_candles(botclient, ohlcv_history): "y_end": 98000, "color": "", "label": "some label", - } + }, + { + "type": "line", + "start": "2024-01-01 15:00:00", + "end": "2024-01-01 16:00:00", + "y_start": 99000.2, + "y_end": 98000, + "color": "", + "label": "some label", + "width": 2, + "line_style": "dashed", + }, ] plot_annotations_mock = MagicMock(return_value=fake_plot_annotations) ftbot.strategy.plot_annotations = plot_annotations_mock