Skip to content

Commit

Permalink
Remove Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
blagojabozinovski committed Feb 28, 2024
1 parent d96734b commit 08eba03
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions ckanext/keycloak/tests/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,4 @@ def test_generate_password():
assert type(password) is str


@pytest.mark.usefixtures(u'clean_db', u'clean_index')
def test_activate_user_if_deleted():
user = factories.User()
user = model.User.get(user[u'name'])
user.delete()
h.activate_user_if_deleted(user)
assert not user.is_deleted()


@pytest.mark.usefixtures(u'clean_db')
def test_ensure_unique_user_name_existing_user():

user = factories.User(
name='existing-user',
email=u'[email protected]'
)

user_name = h.ensure_unique_username_from_email(user['email'])

assert user_name != user['email'].split('@')[0]
assert user_name.startswith(user['email'].split('@')[0])

0 comments on commit 08eba03

Please sign in to comment.