Skip to content

Commit e14a529

Browse files
committed
not strong enough password
1 parent 8fae848 commit e14a529

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mergin/test/test_client.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
USER_PWD = os.environ.get("TEST_API_PASSWORD")
5757
API_USER2 = os.environ.get("TEST_API_USERNAME2")
5858
USER_PWD2 = os.environ.get("TEST_API_PASSWORD2")
59-
PASSWORD_DEFAULT = PASSWORD_DEFAULT = secrets.token_urlsafe(10)
59+
PASSWORD_DEFAULT = PASSWORD_DEFAULT = secrets.token_urlsafe(20)
6060
DEFAULT_OVERRIDES = {"projects": 100, "api_allowed": True}
6161
TMP_DIR = tempfile.gettempdir()
6262
TEST_DATA_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "test_data")
@@ -88,7 +88,7 @@ def create_project_path(name, mc):
8888

8989

9090
def create_mc_client_and_workspace(api_user, user_pwd, test_tag=""):
91-
if api_user and user_pwd : # if API_USER and USER_PWD is provided we log in user and use him for tests
91+
if api_user and user_pwd: # if API_USER and USER_PWD is provided we log in user and use him for tests
9292
user = api_user
9393
password = user_pwd
9494

@@ -120,7 +120,6 @@ def create_mc_client_and_workspace(api_user, user_pwd, test_tag=""):
120120
def mc():
121121
assert SERVER_URL and SERVER_URL.rstrip("/") != "https://app.merginmaps.com"
122122

123-
124123
client = create_mc_client_and_workspace(API_USER, USER_PWD)
125124

126125
yield client

0 commit comments

Comments
 (0)