From 79e3ec4eb607ecbcd867360b60d2b753df9bbd07 Mon Sep 17 00:00:00 2001 From: Sean Gillies Date: Thu, 3 Jun 2021 10:35:32 -0600 Subject: [PATCH] Skip test if we have no AWS credentials --- tests/test_rio_info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_rio_info.py b/tests/test_rio_info.py index 00840d90..72e688fd 100644 --- a/tests/test_rio_info.py +++ b/tests/test_rio_info.py @@ -416,7 +416,7 @@ def test_info_no_credentials(tmpdir, monkeypatch, runner): ['info', 'tests/data/RGB.byte.tif']) assert result.exit_code == 0 - +@pytest.mark.skipif(not(boto3.Session()._session.get_credentials()), reason="S3 raster access requires credentials") @requires_gdal23(reason="Unsigned S3 requests require GDAL ~= 2.3") @pytest.mark.network def test_info_aws_unsigned(runner):