Skip to content

Commit

Permalink
Disable 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 6dea905 commit 265e0d8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/aio/test_aio_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ 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="For some reasons this does not work on Python 3.7 on Ubuntu, "
"but works on my Mac. Unfortunately GHA use Python 3.7 on Ubuntu.")
@pytest.mark.parametrize('default', [True, False])
@mock.patch('reportportal_client.aio.client.aiohttp.TCPConnector')
@pytest.mark.asyncio
Expand All @@ -163,6 +166,9 @@ 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="For some reasons this does not work on Python 3.7 on Ubuntu, "
"but works on my Mac. Unfortunately GHA use Python 3.7 on Ubuntu.")
@pytest.mark.parametrize('param_value', [False, None])
@mock.patch('reportportal_client.aio.client.aiohttp.TCPConnector')
@pytest.mark.asyncio
Expand All @@ -175,6 +181,9 @@ 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="For some reasons this does not work on Python 3.7 on Ubuntu, "
"but works on my Mac. Unfortunately GHA use Python 3.7 on Ubuntu.")
@mock.patch('reportportal_client.aio.client.aiohttp.TCPConnector')
@pytest.mark.asyncio
async def test_verify_ssl_str(connector_mock: mock.Mock):
Expand All @@ -189,3 +198,4 @@ async def test_verify_ssl_str(connector_mock: mock.Mock):
certificate = ssl_context.get_ca_certs()[0]
assert certificate['subject'][1] == (('organizationName', 'Internet Security Research Group'),)
assert certificate['notAfter'] == 'Jun 4 11:04:38 2035 GMT'

0 comments on commit 265e0d8

Please sign in to comment.