From 520ea19891bc43fa08b4a9095cc5b97033ba7778 Mon Sep 17 00:00:00 2001 From: awarde96 Date: Tue, 6 Aug 2024 10:01:19 +0000 Subject: [PATCH] fix tests --- tests/test_decoder_time_series.py | 24 ++++++++++++------------ tests/test_encoder_time_series.py | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/tests/test_decoder_time_series.py b/tests/test_decoder_time_series.py index 8b91613..bf19fe9 100644 --- a/tests/test_decoder_time_series.py +++ b/tests/test_decoder_time_series.py @@ -260,26 +260,26 @@ def test_timeseries_coordinates(self): coordinates = { "t": [ [ - [3, 7, 1, "20170101", "2017-01-01 00:00:00", "0"], - [3, 7, 1, "20170101", "2017-01-01 06:00:00", "0"], - [3, 7, 1, "20170101", "2017-01-01 12:00:00", "0"], + [3, 7, 1, "2017-01-01 00:00:00", "2017-01-01 00:00:00", "0"], + [3, 7, 1, "2017-01-01 00:00:00", "2017-01-01 06:00:00", "0"], + [3, 7, 1, "2017-01-01 00:00:00", "2017-01-01 12:00:00", "0"], ], [ - [3, 7, 1, "20170102", "2017-01-02 00:00:00", "0"], - [3, 7, 1, "20170102", "2017-01-02 06:00:00", "0"], - [3, 7, 1, "20170102", "2017-01-02 12:00:00", "0"], + [3, 7, 1, "2017-01-02 00:00:00", "2017-01-02 00:00:00", "0"], + [3, 7, 1, "2017-01-02 00:00:00", "2017-01-02 06:00:00", "0"], + [3, 7, 1, "2017-01-02 00:00:00", "2017-01-02 12:00:00", "0"], ], ], "p": [ [ - [3, 7, 1, "20170101", "2017-01-01 00:00:00", "0"], - [3, 7, 1, "20170101", "2017-01-01 06:00:00", "0"], - [3, 7, 1, "20170101", "2017-01-01 12:00:00", "0"], + [3, 7, 1, "2017-01-01 00:00:00", "2017-01-01 00:00:00", "0"], + [3, 7, 1, "2017-01-01 00:00:00", "2017-01-01 06:00:00", "0"], + [3, 7, 1, "2017-01-01 00:00:00", "2017-01-01 12:00:00", "0"], ], [ - [3, 7, 1, "20170102", "2017-01-02 00:00:00", "0"], - [3, 7, 1, "20170102", "2017-01-02 06:00:00", "0"], - [3, 7, 1, "20170102", "2017-01-02 12:00:00", "0"], + [3, 7, 1, "2017-01-02 00:00:00", "2017-01-02 00:00:00", "0"], + [3, 7, 1, "2017-01-02 00:00:00", "2017-01-02 06:00:00", "0"], + [3, 7, 1, "2017-01-02 00:00:00", "2017-01-02 12:00:00", "0"], ], ], } diff --git a/tests/test_encoder_time_series.py b/tests/test_encoder_time_series.py index 74096d3..10da5d7 100644 --- a/tests/test_encoder_time_series.py +++ b/tests/test_encoder_time_series.py @@ -223,7 +223,7 @@ def test_add_coverage(self): "t": timestamps, } coords.append(coord) - value = {"2t": [random.uniform(230, 270) for _ in range(0, len(timestamps))]} + value = {"2t": {0 : [random.uniform(230, 270) for _ in range(0, len(timestamps))]}} values.append(value) encoder.add_coverage(metadata, coord, value)