"""Integration test configuration.""" import os import pytest from tests.integration.consts.ows_payee_api_client import PayeeAPIClient QA_BASE_URL = os.environ.get('QA_BASE_URL', 'https://qa-ows-payee.theorchard.io') ACCOUNT_PAYEE_ID = 1 def ows_payee_api_client(headers): """Create ows-payee client.""" return PayeeAPIClient(QA_BASE_URL, headers) @pytest.fixture(scope='session') def basic_headers(): """Return basic headers.""" return { 'Content-Type': 'application/json', 'Orchard-Profile-Type': 'AbacusProfile', 'Orchard-Roles': 'administrator', 'Orchard-Identity-Id': '74587696-f2a4-4344-a919-ec69fe772147', 'Orchard-Profile-Id': '81588', } @pytest.fixture(scope='session') def documents_headers(): """Return basic headers.""" """Quick fix to pass integartion test, will be replaced by dedicated test profile in the future.""" return { 'Content-Type': 'application/json', 'Orchard-Profile-Type': 'DocumentsProfile', 'Orchard-Roles': 'payee_management', 'Orchard-Identity-Id': '628ba3a7-433c-4c80-8975-b5bf24de97f8', 'Orchard-Profile-Id': '3620013', } @pytest.fixture(scope='session') def bad_headers(): """Return basic headers.""" return { 'Content-Type': 'application/json', 'Orchard-Profile-Type': 'UnknownProfile', 'Orchard-Roles': 'administrator', 'Orchard-Identity-Id': '74587696-f2a4-4344-a919-ec69fe772147', 'Orchard-Profile-Id': '123321', }