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

Use fallback schema in api client

parent de04e0e4
No related branches found
No related tags found
1 merge request!28Use fallback schema in api client
Pipeline #77992 passed
......@@ -23,7 +23,6 @@ def setup_api(responses, monkeypatch):
]
for path in paths:
path = Path(path).expanduser().absolute()
print(path)
if path.exists():
monkeypatch.setenv("ARKINDEX_API_SCHEMA_URL", str(path))
schema_url = str(path)
......@@ -32,6 +31,7 @@ def setup_api(responses, monkeypatch):
# Fallback to prod environment
if schema_url is None:
schema_url = "https://arkindex.teklia.com/api/v1/openapi/?format=openapi-json"
monkeypatch.setenv("ARKINDEX_API_SCHEMA_URL", schema_url)
# Allow accessing remote API schemas
responses.add_passthru(schema_url)
......
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