From f2e20172372fbb5eb74bbc4edb5010c241ad6b2e Mon Sep 17 00:00:00 2001 From: Lubomir Dolezal Date: Fri, 28 Jun 2024 16:46:16 +0200 Subject: [PATCH] try using dateutil for python 3.10 --- tests/test_generate.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_generate.py b/tests/test_generate.py index 0f34f86..ac8232c 100644 --- a/tests/test_generate.py +++ b/tests/test_generate.py @@ -4,6 +4,7 @@ from datetime import datetime import pytest +from dateutil import parser from eodash_catalog.generate_indicators import process_catalog_file from eodash_catalog.utils import ( Options, @@ -63,9 +64,7 @@ def test_collection_no_wms_has_a_single_item(catalog_output_folder): assert collection_json["extent"]["temporal"]["interval"][0][0] == start_date assert ( datetime.today().date() - == datetime.fromisoformat( - collection_json["extent"]["temporal"]["interval"][0][1] - ).date() + == parser.parse(collection_json["extent"]["temporal"]["interval"][0][1]).date() ) child_collection_path = os.path.join(root_collection_path, collection_name) child_child_collection_path = os.path.join(child_collection_path, collection_name)