fix: expose helper functions at module level for test patching
- Move get_all_settings_from_db import to module level in app/views/settings.py - Move get_provider_status and get_settings_for_display imports to module level in app/views/status.py - Fix CI workflow: replace deprecated 'file' parameter with 'files' in codecov-action - Fix CI workflow: update test results upload to use codecov-action@v5 with report_type instead of deprecated test-results-action@v1 Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
@@ -12,7 +12,11 @@ from fastapi.responses import RedirectResponse
|
||||
from sqlalchemy.orm import Session
|
||||
|
||||
from app.utils.config_validator.masking import mask_sensitive_value
|
||||
from app.utils.settings_service import get_setting_metadata, get_settings_by_category
|
||||
from app.utils.settings_service import (
|
||||
get_all_settings_from_db,
|
||||
get_setting_metadata,
|
||||
get_settings_by_category,
|
||||
)
|
||||
from app.views.base import APIRouter, get_db, require_login, settings, templates
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
@@ -57,8 +61,6 @@ async def settings_page(request: Request, db: Session = Depends(get_db)):
|
||||
|
||||
try:
|
||||
# Get settings from database
|
||||
from app.utils.settings_service import get_all_settings_from_db
|
||||
|
||||
db_settings = get_all_settings_from_db(db)
|
||||
|
||||
# Get settings organized by category
|
||||
|
||||
Reference in New Issue
Block a user