From 9fd6fb4881e0f8b9f3df4f301aa00c8a3edfd0ba Mon Sep 17 00:00:00 2001 From: vincentsarago Date: Wed, 7 Feb 2024 11:51:21 +0100 Subject: [PATCH] lint --- tests/unit/test_collection_queries.py | 9 +++++++-- tests/unit/test_granule_queries.py | 7 ++++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/tests/unit/test_collection_queries.py b/tests/unit/test_collection_queries.py index bc152b63..f2c42a38 100644 --- a/tests/unit/test_collection_queries.py +++ b/tests/unit/test_collection_queries.py @@ -1,14 +1,18 @@ # package imports import datetime as dt + import pytest from earthaccess.search import DataCollections - valid_single_dates = [ ("2001-12-12", "2001-12-21", "2001-12-12T00:00:00Z,2001-12-21T00:00:00Z"), ("2021-02-01", "", "2021-02-01T00:00:00Z,"), ("1999-02-01 06:00", "2009-01-01", "1999-02-01T06:00:00Z,2009-01-01T00:00:00Z"), - (dt.datetime(2021, 2, 1), dt.datetime(2021, 2, 2), "2021-02-01T00:00:00Z,2021-02-02T00:00:00Z") + ( + dt.datetime(2021, 2, 1), + dt.datetime(2021, 2, 2), + "2021-02-01T00:00:00Z,2021-02-02T00:00:00Z", + ), ] invalid_single_dates = [ @@ -17,6 +21,7 @@ ("2999-02-01", "2009-01-01", None), ] + def test_query_can_find_cloud_provider(): query = DataCollections().daac("PODAAC").cloud_hosted(True) assert query.params["provider"] == "POCLOUD" diff --git a/tests/unit/test_granule_queries.py b/tests/unit/test_granule_queries.py index fa05fcd8..33280810 100644 --- a/tests/unit/test_granule_queries.py +++ b/tests/unit/test_granule_queries.py @@ -1,5 +1,6 @@ # package imports import datetime as dt + import pytest from earthaccess.search import DataGranules @@ -7,7 +8,11 @@ ("2001-12-12", "2001-12-21", "2001-12-12T00:00:00Z,2001-12-21T00:00:00Z"), ("2021-02-01", "", "2021-02-01T00:00:00Z,"), ("1999-02-01 06:00", "2009-01-01", "1999-02-01T06:00:00Z,2009-01-01T00:00:00Z"), - (dt.datetime(2021, 2, 1), dt.datetime(2021, 2, 2), "2021-02-01T00:00:00Z,2021-02-02T00:00:00Z") + ( + dt.datetime(2021, 2, 1), + dt.datetime(2021, 2, 2), + "2021-02-01T00:00:00Z,2021-02-02T00:00:00Z", + ), ] invalid_single_dates = [