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

Commit

Permalink
Fix fixture for OMPS without authentication
Browse files Browse the repository at this point in the history
This is a leftover from switching integration test env
config from env vars to a YAML file.

Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
  • Loading branch information
Hunor Csomortáni authored and MartinBasti committed Mar 13, 2019
1 parent eddae51 commit b351acc
Showing 1 changed file with 3 additions and 5 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

0 comments on commit b351acc

Please sign in to comment.