Skip to content

Commit d9cf597

Browse files
committed
Fix path specified for alembic.ini
1 parent 9b9b6ec commit d9cf597

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

backend/app/api/meta.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def api_meta():
1212
"status": "internal",
1313
"breaking_changes": (
1414
"No breaking changes are currently declared. This field will describe "
15-
"required upgrade paths when incompatible API versions are introduced.",
15+
"required upgrade paths when incompatible API versions are introduced."
1616
),
1717
# Build identifier injected at deploy time (e.g., short git SHA).
1818
# Intentionally None until CI/CD or multi-environment deployments exist.

backend/tests/conftest.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import os
22
import uuid
33
from collections.abc import AsyncGenerator
4+
from pathlib import Path
45
from typing import Generator
56
from urllib.parse import urlparse
67

@@ -26,7 +27,9 @@
2627

2728
logger = _setup_custom_logger(__name__)
2829

29-
ALEMBIC_INI_PATH = "alembic.ini"
30+
31+
BASE_DIR = Path(__file__).resolve().parents[1]
32+
ALEMBIC_INI_PATH = BASE_DIR / "alembic.ini"
3033

3134

3235
# -----------------------------------------------

backend/tests/test_main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def test_meta_endpoint(self, client):
2626
"status": "internal",
2727
"breaking_changes": (
2828
"No breaking changes are currently declared. This field will describe "
29-
"required upgrade paths when incompatible API versions are introduced.",
29+
"required upgrade paths when incompatible API versions are introduced."
3030
),
3131
"build": None,
3232
}

0 commit comments

Comments
 (0)