Test Case: test_login
Description: The test case test_login might fail if the user tries to log in with an incorrect password. In this scenario, even though the user exists in the database, the provided password does not match the stored password hash, resulting in a 401 Unauthorized error.
Steps to Reproduce:
- Sign up a user with username
testuserand passwordpassword. - Attempt to log in with username
testuserand an incorrect password (e.g.,wrongpassword). - The server should return a 401 Unauthorized status, indicating that the credentials are invalid.
Expected Output:
{
"message": "Invalid Username or Password"
}