Skip to content

Commit

Permalink
Enable SSL tests for python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Oct 9, 2023
1 parent 3641521 commit c233e11
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/aio/test_aio_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,6 @@ async def get_call(*args, **kwargs):
assert await (aio_client.get_launch_ui_url('test_launch_uuid')) == expected_url


@pytest.mark.skipif(sys.version_info < (3, 8),
reason="the test requires AsyncMock which was introduced in Python 3.8")
@pytest.mark.parametrize('default', [True, False])
@mock.patch('reportportal_client.aio.client.aiohttp.TCPConnector')
@pytest.mark.asyncio
Expand All @@ -165,8 +163,6 @@ async def test_verify_ssl_default(connector_mock: mock.Mock, default: bool):
assert len(ssl_context.get_ca_certs()) > 0


@pytest.mark.skipif(sys.version_info < (3, 8),
reason="the test requires AsyncMock which was introduced in Python 3.8")
@pytest.mark.parametrize('param_value', [False, None])
@mock.patch('reportportal_client.aio.client.aiohttp.TCPConnector')
@pytest.mark.asyncio
Expand All @@ -179,8 +175,6 @@ async def test_verify_ssl_off(connector_mock: mock.Mock, param_value):
assert ssl_context is not None and isinstance(ssl_context, bool) and not ssl_context


@pytest.mark.skipif(sys.version_info < (3, 8),
reason="the test requires AsyncMock which was introduced in Python 3.8")
@mock.patch('reportportal_client.aio.client.aiohttp.TCPConnector')
@pytest.mark.asyncio
async def test_verify_ssl_str(connector_mock: mock.Mock):
Expand Down

0 comments on commit c233e11

Please sign in to comment.