Skip to content
This repository has been archived by the owner on Jan 23, 2025. It is now read-only.

Commit

Permalink
Added one more test
Browse files Browse the repository at this point in the history
  • Loading branch information
toavina committed Oct 30, 2024
1 parent c9c0e16 commit 702b7fe
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions ckanext/zarr/tests/test_authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,19 @@ def test_wrong_password(self):
authenticated_user = ZaRRPlugin.authenticate(ZaRRPlugin(), identity)
assert authenticated_user is None

def test_wrong_password_with_different_case_email(self):
"""Test authentication fails with incorrect password and different case email"""
factories.User(
email='[email protected]',
password='correctpassword'
)
identity = {
'login': '[email protected]',
'password': 'wrongpassword'
}
authenticated_user = ZaRRPlugin.authenticate(ZaRRPlugin(), identity)
assert authenticated_user is None

def test_nonexistent_user(self):
"""Test authentication fails for non-existent user"""
identity = {
Expand Down

0 comments on commit 702b7fe

Please sign in to comment.