Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
cfkanesan committed Mar 28, 2024
1 parent f8c5d34 commit 9d42ee0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/test_idpi/test_mars.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9d42ee0

Please sign in to comment.