Skip to content

Commit

Permalink
Adjust statistical client tests to avoid deprecation warnings (#386)
Browse files Browse the repository at this point in the history
* adjust statistical client tests to avoid deprecation warnings

* fix test outputs
  • Loading branch information
zigaLuksic authored Jan 31, 2023
1 parent 780b755 commit 68769b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/download/test_sentinelhub_statistical_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ def test_statistical_client_download_per_interval(download_request: DownloadRequ
],
)

data = client.download(download_request)
data = client.download([download_request])

assert data == {
assert data[0] == {
"data": [
{"interval": {"from": "2020-01-05", "to": "2020-01-05"}, "outputs": 0},
{"interval": {"from": "2020-01-10", "to": "2020-01-10"}, "error": {"type": "BAD_REQUEST"}},
Expand Down Expand Up @@ -80,5 +80,5 @@ def test_statistical_client_runs_out_of_retries(download_request: DownloadReques
)

with pytest.raises(DownloadFailedException) as exception_info:
client.download(download_request)
client.download([download_request])
assert str(exception_info.value) == "No more interval retries available, download unsuccessful"

0 comments on commit 68769b4

Please sign in to comment.