refactor: Web 服务器从 gunicorn 迁移到 uvicorn
This commit is contained in:
@@ -2,7 +2,7 @@ from __future__ import annotations
|
||||
|
||||
from pytest import MonkeyPatch
|
||||
|
||||
from core.config.settings import Settings
|
||||
from core.config.settings import PROJECT_ROOT, Settings
|
||||
|
||||
|
||||
def test_runtime_settings_defaults() -> None:
|
||||
@@ -52,3 +52,9 @@ def test_runtime_settings_default_file_names_follow_service_name(
|
||||
assert settings.runtime.log_error_dir == "logs/errors"
|
||||
assert settings.runtime.log_file_name == "worker-default.log"
|
||||
assert settings.runtime.log_error_file_name == "worker-default.error.log"
|
||||
|
||||
|
||||
def test_project_root_points_to_repo_root() -> None:
|
||||
assert (PROJECT_ROOT / "backend").is_dir()
|
||||
assert (PROJECT_ROOT / "infra").is_dir()
|
||||
assert (PROJECT_ROOT / "pyproject.toml").is_file()
|
||||
|
||||
Reference in New Issue
Block a user