Skip to content

Commit

Permalink
MNT: Add test for the new handling of encoding. [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Taher Chegini committed Apr 6, 2024
1 parent 1bba38d commit 8bf6b2d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_async_retriever.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ async def check_url(url, method="GET", **kwargs):
return await cache.has_url(url, method, **kwargs)


def test_encoding():
url = "https://java.epa.gov/StreamCAT/metrics/variable_info.csv"
resp = ar.retrieve_text([url])
assert resp[0][:3] == "AOI"


def test_disable_cache():
url = "https://epqs.nationalmap.gov/v1/json"
payload = {"params": {"x": -101, "y": 38, "units": "Meters"}}
Expand Down

0 comments on commit 8bf6b2d

Please sign in to comment.