Skip to content

Commit 3725b4b

Browse files
committed
try fixing server config during tests
1 parent 966b5f5 commit 3725b4b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/conftest.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import pytest_asyncio
2020
from rest_tools.client import RestClient
2121

22+
from file_catalog.config import Config
2223
from file_catalog.mongo import Mongo
2324
from file_catalog.server import create
2425

@@ -86,14 +87,15 @@ async def rest(monkeypatch: MonkeyPatch, mongo: Mongo, port: int) -> AsyncGenera
8687
monkeypatch.delenv("OTEL_EXPORTER_OTLP_ENDPOINT", raising=False)
8788
monkeypatch.setenv("WIPACTEL_EXPORT_STDOUT", "FALSE")
8889

89-
config: Dict[str, Any] = {
90+
config: Config = Config()
91+
config.update({
9092
"AUTH_AUDIENCE": "file-catalog-testing",
9193
"AUTH_OPENID_URL": "https://keycloak.icecube.wisc.edu/auth/realms/IceCube",
9294
"FC_HOST": "localhost",
9395
"FC_PORT": port,
9496
"FC_PUBLIC_URL": f"http://localhost:{port}",
9597
"FC_QUERY_FILE_LIST_LIMIT": 10000,
96-
}
98+
})
9799

98100
rest_server = create(config=config,
99101
port=port,

0 commit comments

Comments
 (0)