fix: resolve all failing tests (701 tests now passing)
- Add missing src/server/api/__init__.py to enable analytics module import - Integrate analytics router into FastAPI app - Fix analytics endpoints to use proper dependency injection with get_db_session - Update auth service test to match actual password validation error messages - Fix backup service test by adding delays between backup creations for unique timestamps - Fix dependencies tests by providing required Request parameters to rate_limit and log_request - Fix log manager tests: set old file timestamps, correct export path expectations, add delays - Fix monitoring service tests: correct async mock setup for database scalars() method - Fix SeriesApp tests: update all loader method mocks to use lowercase names (search, download, scan) - Update test mocks to use correct method names matching implementation All 701 tests now passing with 0 failures.
This commit is contained in:
@@ -46,10 +46,10 @@ class TestPasswordSetup:
|
||||
def test_password_case_validation(self):
|
||||
"""Test mixed case requirement."""
|
||||
svc = AuthService()
|
||||
with pytest.raises(ValueError, match="mixed case"):
|
||||
with pytest.raises(ValueError, match="uppercase and lowercase"):
|
||||
svc.setup_master_password("alllowercase1!")
|
||||
|
||||
with pytest.raises(ValueError, match="mixed case"):
|
||||
with pytest.raises(ValueError, match="uppercase and lowercase"):
|
||||
svc.setup_master_password("ALLUPPERCASE1!")
|
||||
|
||||
def test_password_special_char_validation(self):
|
||||
|
||||
Reference in New Issue
Block a user