Convert password reset and auth dependencies tests to async
- Refactored all `password reset` and `auth dependency` tests to utilize async patterns for compatibility with async database sessions. - Enhanced test fixtures with `pytest-asyncio` to support asynchronous database operations. - Improved user handling with async context management for `test_user` and `async_mock_user`. - Introduced `await` syntax for route calls, token generation, and database transactions in test cases.
This commit is contained in:
0
backend/tests/models/__init__.py
Normal file → Executable file
0
backend/tests/models/__init__.py
Normal file → Executable file
0
backend/tests/models/test_user.py
Normal file → Executable file
0
backend/tests/models/test_user.py
Normal file → Executable file
Reference in New Issue
Block a user