Skip to content

Commit

Permalink
add test for user key with random value
Browse files Browse the repository at this point in the history
  • Loading branch information
mkudlej committed May 27, 2024
1 parent eb4adf9 commit 0503ee1
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 0503ee1

Please sign in to comment.