From b351acc210116e75368fd3e8fdd08cb218c395b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hunor=20Csomort=C3=A1ni?= Date: Wed, 13 Mar 2019 17:06:09 +0100 Subject: [PATCH] Fix fixture for OMPS without authentication MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a leftover from switching integration test env config from env vars to a YAML file. Signed-off-by: Hunor Csomortáni --- tests/integration/authorization/authorization_test.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/integration/authorization/authorization_test.py b/tests/integration/authorization/authorization_test.py index 05f9f70..c3b0f7b 100644 --- a/tests/integration/authorization/authorization_test.py +++ b/tests/integration/authorization/authorization_test.py @@ -3,7 +3,7 @@ # see the LICENSE file for license # -import os + import shutil import pytest import requests @@ -11,10 +11,8 @@ @pytest.fixture(scope='module') -def no_auth_omps(): - api_url = os.getenv('OMPS_INT_TEST_OMPS_URL') - - return OMPS(api_url) +def no_auth_omps(test_env): + return OMPS(test_env['omps_url']) def test_upload_without_authorization(test_env, no_auth_omps, tmp_path):