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):