Skip to content

Commit

Permalink
Merge pull request #157 from mkudlej/add_user_key_test
Browse files Browse the repository at this point in the history
add test for user key with random value
  • Loading branch information
mkudlej authored May 27, 2024
2 parents eb4adf9 + 0503ee1 commit 794321f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/integration/test_integration_application.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import pytest
import random
import string
import secrets
import pytest

from tests.integration import asserts

Expand Down Expand Up @@ -35,3 +37,9 @@ def test_application_key_can_be_created(app_key, app_key_params):
def test_application_key_list(application, app_key):
keys = application.keys.list()
assert len(keys) > 0

def test_application_update_userkey(application):
new_key = "".join(random.choices(string.ascii_letters + string.digits + "-_.", k=100))
updated_application = application.update(params={"user_key": new_key})
asserts.assert_resource(updated_application)
assert updated_application["user_key"] == new_key

0 comments on commit 794321f

Please sign in to comment.