Skip to content

Commit

Permalink
try using dateutil for python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
lubojr committed Jun 28, 2024
1 parent 3d88d2c commit f2e2017
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit f2e2017

Please sign in to comment.