From 9d42ee0e969f5680a41625ddf595c133d3e5ab50 Mon Sep 17 00:00:00 2001 From: Christian Kanesan Date: Thu, 28 Mar 2024 11:26:13 +0100 Subject: [PATCH] test --- tests/test_idpi/test_mars.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests/test_idpi/test_mars.py b/tests/test_idpi/test_mars.py index 75548db0..2a2d6957 100644 --- a/tests/test_idpi/test_mars.py +++ b/tests/test_idpi/test_mars.py @@ -76,3 +76,22 @@ def test_any_staggering(sample): } assert observed == expected + + +def test_feature_timeseries(sample): + feature = mars.TimeseriesFeature( + points=[mars.Point(0.1, 0.2)], + start=0, + end=300, + ) + observed = mars.Request("U", date="20200101", time="0000", feature=feature).to_fdb() + expected = sample | { + "feature": { + "type": "timeseries", + "points": [[0.1, 0.2]], + "start": 0, + "end": 300, + } + } + + assert observed == expected