(db: Session)
| 9 | |
| 10 | |
| 11 | def test_authenticate_user(db: Session) -> None: |
| 12 | email = random_email() |
| 13 | password = random_lower_string() |
| 14 | user_in = UserCreate(email=email, password=password) |
| 15 | user = create_user(session=db, user_create=user_in) |
| 16 | authenticated_user = authenticate(session=db, email=email, password=password) |
| 17 | assert authenticated_user |
| 18 | assert user.email == authenticated_user.email |
| 19 | |
| 20 | |
| 21 | def test_not_authenticate_user(db: Session) -> None: |
nothing calls this directly
no test coverage detected