File tree Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ known_first_party = ["stac_auth_proxy"]
2929profile = " black"
3030
3131[tool .ruff ]
32- ignore = [" E501" , " D203 " , " D212" ]
32+ ignore = [" E501" , " D205 " , " D212" ]
3333select = [" D" , " E" , " F" ]
3434
3535[build-system ]
Original file line number Diff line number Diff line change 11"""Pytest fixtures."""
22
33import threading
4- from typing import Optional
54
65import pytest
76import uvicorn
Original file line number Diff line number Diff line change 1- import pytest
1+ """Tests for OpenAPI spec handling."""
2+
23from fastapi import FastAPI
34from fastapi .testclient import TestClient
45
56from stac_auth_proxy import Settings , create_app
67
78
89def test_no_edit_openapi_spec (source_api_server ):
9- """
10- When no OpenAPI spec endpoint is set, the proxied OpenAPI spec is unaltered.
11- """
10+ """When no OpenAPI spec endpoint is set, the proxied OpenAPI spec is unaltered."""
1211 app = create_app (
1312 Settings (
1413 upstream_url = source_api_server ,
@@ -27,9 +26,7 @@ def test_no_edit_openapi_spec(source_api_server):
2726
2827
2928def test_oidc_in_openapi_spec (source_api : FastAPI , source_api_server : str ):
30- """
31- When OpenAPI spec endpoint is set, the proxied OpenAPI spec is augmented with oidc details.
32- """
29+ """When OpenAPI spec endpoint is set, the proxied OpenAPI spec is augmented with oidc details."""
3330 app = create_app (
3431 Settings (
3532 upstream_url = source_api_server ,
You can’t perform that action at this time.
0 commit comments