Skip to content

Commit

Permalink
Test response for different Python version unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nikki-t committed Jun 11, 2024
1 parent 8ecacd1 commit b874c01
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions earthaccess/utils/_search.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import logging

import requests
from typing_extensions import Any, List, Union

from cmr import CollectionQuery, GranuleQuery, ServiceQuery

logger = logging.getLogger(__name__)


def get_results(
session: requests.Session,
Expand Down Expand Up @@ -43,6 +47,7 @@ def get_results(
except requests.exceptions.HTTPError as ex:
raise RuntimeError(ex.response.text) from ex

logger.info("RESPONSE: %s", response)
latest = response.json()["items"]

results.extend(latest)
Expand Down

0 comments on commit b874c01

Please sign in to comment.