Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Commit

Permalink
Merge dcefe94 into 9174c10
Browse files Browse the repository at this point in the history
  • Loading branch information
csomh committed Mar 13, 2019
2 parents 9174c10 + dcefe94 commit 0a38139
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions tests/integration/authorization/authorization_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,16 @@
# see the LICENSE file for license
#

import os

import shutil
import pytest
import requests
from tests.integration.utils import OMPS


@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):
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
def test_env():
"""Test environment configuration.
"""
with open('test.env') as f:
with open('test.env.yaml') as f:
env = yaml.safe_load(f)
return env

Expand Down

0 comments on commit 0a38139

Please sign in to comment.