Skip to content
Snippets Groups Projects

Draft: Refactor and implement API version of the worker

Open Yoann Schneider requested to merge new-api-worker into main
6 files
+ 222
21
Compare changes
  • Side-by-side
  • Inline
Files
6
+ 3
5
# -*- coding: utf-8 -*-
import os
from pathlib import Path
import pytest
from arkindex.mock import MockApiClient
from arkindex_export import open_database
from arkindex_worker.worker.base import BaseWorker
DATA_PATH: Path = Path(__file__).parent / "data"
from tests import DATA_PATH
@pytest.fixture(autouse=True)
@@ -19,9 +17,9 @@ def setup_environment(responses, monkeypatch):
# defaulting to the prod environment
schema_url = os.environ.get(
"ARKINDEX_API_SCHEMA_URL",
"https://arkindex.teklia.com/api/v1/openapi/?format=openapi-json",
"https://ee.preprod.arkindex.teklia.com/api/v1/openapi/?format=openapi-json",
)
responses.add_passthru(schema_url)
responses.add_passthru("https://ee.preprod.arkindex.teklia.com/api/v1/")
# Set schema url in environment
os.environ["ARKINDEX_API_SCHEMA_URL"] = schema_url
Loading