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:
@@ -16,6 +16,7 @@ from src.server.utils.template_helpers import (
|
||||
prepare_series_context,
|
||||
validate_template_exists,
|
||||
)
|
||||
from src.server.utils.version import APP_VERSION
|
||||
|
||||
|
||||
class TestTemplateHelpers:
|
||||
@@ -30,7 +31,7 @@ class TestTemplateHelpers:
|
||||
assert context["request"] == request
|
||||
assert context["title"] == "Test Title"
|
||||
assert context["app_name"] == "Aniworld Download Manager"
|
||||
assert context["version"] == "v1.3.6"
|
||||
assert context["version"] == APP_VERSION
|
||||
|
||||
def test_get_base_context_default_title(self):
|
||||
"""Test that default title is used."""
|
||||
|
||||
Reference in New Issue
Block a user