Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add test for user key with random value #157

Merged
merged 1 commit into from
May 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading