Skip to content

Commit 5fbce17

Browse files
author
Martin Kudlej
committed
update Pipfile
1 parent 5d98049 commit 5fbce17

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

Pipfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ flake8 = "*"
33
mypy = "*"
44
pylint = "*"
55
black = "*"
6-
pytest = "<8.0.0"
6+
pytest = "*"
77
python-dotenv = "*"
88
backoff = "*"
99
python-language-server = "*"
10-
pyls-mypy = "*"
10+
#pyls-mypy = "*"
1111
pyls-isort = "*"
1212
pytest-order = "*"
1313

tests/integration/conftest.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import secrets
33
import random
44
import string
5-
from distutils.util import strtobool
65

76
import pytest
87
from dotenv import load_dotenv
@@ -30,15 +29,15 @@
3029

3130
load_dotenv()
3231

32+
def strtobool(istr):
33+
return istr == "y" or istr == "yes" or istr == "t" or istr == "true" or istr == "1"
34+
3335

3436
def cleanup(resource):
3537
resource.delete()
3638
assert not resource.exists()
3739

3840

39-
# pass
40-
41-
4241
def get_suffix() -> str:
4342
return secrets.token_urlsafe(8)
4443

@@ -66,7 +65,7 @@ def master_token() -> str:
6665
@pytest.fixture(scope="session")
6766
def 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

tests/test_3scale_api_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ def _create_client(
2929

3030

3131
@pytest.fixture()
32-
def api(url, token, ocp_provider_ref):
32+
def api(url, token, ocp_provider_ref, namespace):
3333
return _create_client(url, token, ocp_provider_ref)
3434

3535

3636
@pytest.fixture()
3737
def namespace():
3838
try:
3939
return ocp.get_project_name()
40-
except OpenShiftPythonException:
40+
except (FileNotFoundError, OpenShiftPythonException):
4141
return "NOT LOGGED IN"
4242

4343

0 commit comments

Comments
 (0)