Skip to content
Snippets Groups Projects
Commit 01f35cdc authored by Nico's avatar Nico
Browse files

Support python versions lower than 3.6 with tests

https://docs.python.org/3/library/random.html#random.choices
parent 929ead31
No related branches found
No related tags found
No related merge requests found
Pipeline #3552 passed
......@@ -3,7 +3,7 @@
# License-Filename: LICENSE.md
import json
from random import choices
from random import choice
import requests_mock
from string import ascii_letters, digits
from unittest import mock
......@@ -41,4 +41,4 @@ def request_headers(auth_token):
@pytest.fixture
def auth_token():
return ''.join(choices(ascii_letters + digits, k=33))
return ''.join(choice(ascii_letters + digits) for i in range(33))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment