Skip to content

Commit

Permalink
fix Python 3.10 testing API change
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Jun 10, 2022
1 parent 7cf7854 commit 8767403
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
import shutil
from contextlib import contextmanager
from functools import partialmethod
from test.support import EnvironmentVarGuard

try:
from test.support.os_helper import EnvironmentVarGuard
except:
from test.support import EnvironmentVarGuard

import pytest
import requests_mock
Expand Down Expand Up @@ -155,8 +159,8 @@ def test_cli_geometry_WKT_alternative_fail(run_cli):
must_return_nonzero=True,
)
assert (
"neither a GeoJSON file with a valid path, a GeoJSON String nor a WKT string."
in result.output
"neither a GeoJSON file with a valid path, a GeoJSON String nor a WKT string."
in result.output
)


Expand Down Expand Up @@ -553,7 +557,7 @@ def test_product_node_download_single(run_cli, api, tmpdir, smallest_online_prod
@pytest.mark.vcr(allow_playback_repeats=True)
@pytest.mark.scihub
def test_product_node_download_single_with_filter(
run_cli, api, tmpdir, node_test_products, monkeypatch
run_cli, api, tmpdir, node_test_products, monkeypatch
):
# Change default arguments for quicker test.
# Also, vcrpy is not threadsafe, so only one worker is used.
Expand Down

0 comments on commit 8767403

Please sign in to comment.