aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/ran-nssmf-simulator/test/conftest.py
blob: cfa00cd24cec1d7afd5f69636b641714ffd16248 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import pytest
from test_settings import TEST_AUTH_DB_FILE
from json import load
import requests
from requests.packages.urllib3.exceptions import InsecureRequestWarning

requests.packages.urllib3.disable_warnings(InsecureRequestWarning)

@pytest.fixture(scope="module")
def auth_credentials():
    '''A fixture returning credentials for the simulator request'''
    with open(TEST_AUTH_DB_FILE) as creds:
        return load(creds)