Skip to content

Commit f92eb73

Browse files
committed
Fix tests
1 parent f02cd37 commit f92eb73

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tests/aio/test_aio_client.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
from reportportal_client._internal.aio.http import DEFAULT_RETRY_NUMBER, ClientSession, RetryingClientSession
3131

3232
# noinspection PyProtectedMember
33-
from reportportal_client._internal.static.defines import NOT_SET
3433
from reportportal_client.aio.client import Client
3534
from reportportal_client.core.rp_issues import Issue
3635
from reportportal_client.core.rp_requests import AsyncRPRequestLog
@@ -58,10 +57,10 @@ def test_client_pickling():
5857
"retry_num, expected_wrapped_class, expected_param",
5958
[
6059
(1, RetryingClientSession, 1),
61-
(0, aiohttp.ClientSession, NOT_SET),
62-
(-1, aiohttp.ClientSession, NOT_SET),
63-
(None, aiohttp.ClientSession, NOT_SET),
64-
(NOT_SET, RetryingClientSession, DEFAULT_RETRY_NUMBER),
60+
(0, aiohttp.ClientSession, -1),
61+
(-2, aiohttp.ClientSession, -1),
62+
(None, aiohttp.ClientSession, -1),
63+
(-1, RetryingClientSession, DEFAULT_RETRY_NUMBER),
6564
],
6665
)
6766
@pytest.mark.asyncio
@@ -73,7 +72,7 @@ async def test_retries_param(retry_num, expected_wrapped_class, expected_param):
7372
# Check the wrapped session type
7473
# noinspection PyProtectedMember
7574
assert isinstance(session._client, expected_wrapped_class)
76-
if expected_param is not NOT_SET:
75+
if expected_param != -1:
7776
# noinspection PyProtectedMember
7877
assert getattr(session._client, "_RetryingClientSession__retry_number") == expected_param
7978

0 commit comments

Comments
 (0)