Skip to content

Commit 901d492

Browse files
author
Francisco Aranda
committed
chore(api): configure api version from rubrix version
1 parent 5413fe7 commit 901d492

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/rubrix/server/server.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from fastapi import FastAPI
99
from fastapi.middleware.cors import CORSMiddleware
1010
from pydantic import ValidationError
11+
from rubrix import __version__ as rubrix_version
1112
from rubrix.server.commons.errors import (
1213
common_exception_handler,
1314
validation_exception_handler,
@@ -88,6 +89,7 @@ def configure_app_security(app: FastAPI):
8889
openapi_url="/api/docs/spec.json",
8990
docs_url="/api/docs" if api_settings.docs_enabled else None,
9091
redoc_url=None,
92+
version=str(rubrix_version),
9193
)
9294

9395
for app_configure in [

temporal/test_app.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from fastapi.testclient import TestClient
2+
3+
from temporal.app import app
4+
5+
client = TestClient(app)
6+
7+
8+
def test_auth0():
9+
10+
response = client.get("/access")

0 commit comments

Comments
 (0)