Skip to content

Commit 9ea2491

Browse files
committed
test: add annotation line test
1 parent 4ba13a4 commit 9ea2491

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

tests/rpc/test_rpc_apiserver.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1901,7 +1901,18 @@ def test_api_pair_candles(botclient, ohlcv_history):
19011901
"y_end": 98000,
19021902
"color": "",
19031903
"label": "some label",
1904-
}
1904+
},
1905+
{
1906+
"type": "line",
1907+
"start": "2024-01-01 15:00:00",
1908+
"end": "2024-01-01 16:00:00",
1909+
"y_start": 99000.2,
1910+
"y_end": 98000,
1911+
"color": "",
1912+
"label": "some label",
1913+
"width": 2,
1914+
"line_style": "dashed",
1915+
},
19051916
]
19061917
plot_annotations_mock = MagicMock(return_value=fake_plot_annotations)
19071918
ftbot.strategy.plot_annotations = plot_annotations_mock

0 commit comments

Comments
 (0)