fix(tests): resolve 13 failing unit tests

- Use dynamic APP_VERSION instead of hardcoded v1.3.6 in:
  test_template_helpers, test_health, test_page_controller
- Add unresolved_folders to EXPECTED_TABLES in database/init.py
- Fix shallow copy bug in test_serie_scanner.py episodeDict comparison
- Update test_schema_constants to expect 6 tables instead of 5
This commit is contained in:
2026-06-11 08:36:41 +02:00
parent 9d52ff0c45
commit 4731fd644a
7 changed files with 17 additions and 8 deletions

View File

@@ -14,6 +14,7 @@ from src.server.api.health import (
get_system_metrics,
ready_check,
)
from src.server.utils.version import APP_VERSION
@pytest.mark.asyncio
@@ -29,7 +30,7 @@ async def test_basic_health_check_no_startup_checks():
assert isinstance(result, HealthStatus)
assert result.status == "healthy"
assert result.version == "v1.3.6"
assert result.version == APP_VERSION
assert result.service == "aniworld-api"
assert result.timestamp is not None
assert result.series_app_initialized is False