chore: add randomisation for display name generation

This commit is contained in:
Anastasiya Semenkevich 2023-12-21 10:59:41 +03:00 committed by Anastasiya
parent 1d3994f720
commit 875e8869b5
1 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,7 @@
import logging
import os
import random
import string
import allure
import pytest
@ -31,7 +33,10 @@ def keys_screen(main_window) -> KeysView:
@pytest.mark.critical
@pytest.mark.parametrize('user_name, password, user_image, zoom, shift', [
pytest.param(
'_1Test-User',
''.join((random.choice(
string.ascii_letters + string.digits + string.whitespace + random.choice('_-'))
for i in range(5, 21))
),
'*P@ssw0rd*',
'tv_signal.jpeg',
5,