Skip to content

Commit 73a2ba4

Browse files
committed
chore: adapt PR to refactored codebase and resolve conflicts
1 parent 254ff37 commit 73a2ba4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/server/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828

2929
# Mount static files dynamically to serve CSS, JS, and other static assets
30-
static_dir = Path(__file__).parent / "static"
30+
static_dir = Path(__file__).parent.parent / "static"
3131
app.mount("/static", StaticFiles(directory=static_dir), name="static")
3232

3333

tests/test_flow_integration.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import pytest
1212
from fastapi.testclient import TestClient
1313

14-
from src.main import app
14+
from src.server.main import app
1515

1616
BASE_DIR = Path(__file__).resolve().parent.parent
1717
TEMPLATE_DIR = BASE_DIR / "src" / "templates"
@@ -28,7 +28,8 @@ def test_client():
2828
@pytest.fixture(scope="module", autouse=True)
2929
def mock_static_files():
3030
"""Mock the static file mount to avoid directory errors."""
31-
with patch("src.main.StaticFiles") as mock_static:
31+
with patch("src.server.main.StaticFiles") as mock_static:
32+
mock_static.return_value = None # Mocks the StaticFiles response
3233
yield mock_static
3334

3435

0 commit comments

Comments
 (0)