File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,11 +3,11 @@ flake8 = "*"
33mypy = " *"
44pylint = " *"
55black = " *"
6- pytest = " <8.0.0 "
6+ pytest = " * "
77python-dotenv = " *"
88backoff = " *"
99python-language-server = " *"
10- pyls-mypy = " *"
10+ # pyls-mypy = "*"
1111pyls-isort = " *"
1212pytest-order = " *"
1313
Original file line number Diff line number Diff line change 22import secrets
33import random
44import string
5- from distutils .util import strtobool
65
76import pytest
87from dotenv import load_dotenv
3029
3130load_dotenv ()
3231
32+ def strtobool (istr ):
33+ return istr == "y" or istr == "yes" or istr == "t" or istr == "true" or istr == "1"
34+
3335
3436def cleanup (resource ):
3537 resource .delete ()
3638 assert not resource .exists ()
3739
3840
39- # pass
40-
41-
4241def get_suffix () -> str :
4342 return secrets .token_urlsafe (8 )
4443
@@ -66,7 +65,7 @@ def master_token() -> str:
6665@pytest .fixture (scope = "session" )
6766def ssl_verify () -> bool :
6867 ssl_verify = os .getenv ("THREESCALE_SSL_VERIFY" , "false" )
69- ssl_verify = bool ( strtobool (ssl_verify ) )
68+ ssl_verify = strtobool (ssl_verify )
7069 if not ssl_verify :
7170 import urllib3
7271
You can’t perform that action at this time.
0 commit comments