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:
@@ -473,12 +473,13 @@ async def test_validate_schema_with_inspection_error():
|
||||
def test_schema_constants():
|
||||
"""Test that schema constants are properly defined."""
|
||||
assert CURRENT_SCHEMA_VERSION == "1.0.1"
|
||||
assert len(EXPECTED_TABLES) == 5
|
||||
assert len(EXPECTED_TABLES) == 6
|
||||
assert "anime_series" in EXPECTED_TABLES
|
||||
assert "episodes" in EXPECTED_TABLES
|
||||
assert "download_queue" in EXPECTED_TABLES
|
||||
assert "user_sessions" in EXPECTED_TABLES
|
||||
assert "system_settings" in EXPECTED_TABLES
|
||||
assert "unresolved_folders" in EXPECTED_TABLES
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user