Skip to content

Commit

Permalink
Update test for verify_token
Browse files Browse the repository at this point in the history
  • Loading branch information
duhow committed Oct 21, 2023
1 parent 8c3292a commit 93825d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_views_alcali.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,12 +323,13 @@ def test_search_job(admin_client, dummy_state, dummy_jid, minion_master, jwt):

@pytest.mark.django_db()
def test_verify_token(admin_client, admin_user, jwt):
""" Salt expects a list of ACL permissions """
response = admin_client.post(
"/api/token/verify/",
{"username": admin_user.username, "password": admin_user.user_settings.token},
**jwt
)
assert response.json()[admin_user.username] is None
assert isinstance(response.json(), list)

response = admin_client.post(
"/api/token/verify/",
Expand Down

0 comments on commit 93825d5

Please sign in to comment.