Skip to content

Commit

Permalink
Add api host test configuration fixture (#60)
Browse files Browse the repository at this point in the history
Co-authored-by: jschaff <[email protected]>
  • Loading branch information
ctrl-schaff and jschaff authored Oct 14, 2024
1 parent 807b188 commit be4a4d0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,22 @@
input and output storage
"""

import logging
import os

import pytest

pytest_plugins = [
"fixtures.application",
"fixtures.datastore",
]

logger = logging.getLogger(__name__)


# ENVIRONMENT CONFIGURATION
@pytest.fixture(scope="session", autouse=True)
def annotator_environment():
api_host = "https://biothings.test.transltr.io"
os.environ["SERVICE_PROVIDER_API_HOST"] = api_host
logger.info("Set SERVICE PROVIDER API HOST: %s for tests", api_host)

0 comments on commit be4a4d0

Please sign in to comment.