Skip to content
Snippets Groups Projects
Commit e8e9579a authored by Bastien Abadie's avatar Bastien Abadie
Browse files

Add conftest in cookiecutter project

parent 984126fc
No related branches found
Tags 0.3.2
No related merge requests found
Pipeline #77932 failed
# -*- coding: utf-8 -*-
import os
import pytest
@pytest.fixture(autouse=True)
def setup_environment(responses):
"""Setup needed environment variables """
# Allow accessing remote API schemas
# defaulting to the prod environment
schema_url = os.environ.get(
"ARKINDEX_API_SCHEMA_URL",
"https://arkindex.teklia.com/api/v1/openapi/?format=openapi-json",
)
responses.add_passthru(schema_url)
# Setup a fake worker version ID
os.environ["WORKER_VERSION_ID"] = "1234-{{ cookiecutter.slug }}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment