@@ -147,6 +147,9 @@ async def get_call(*args, **kwargs):
147
147
assert await (aio_client .get_launch_ui_url ('test_launch_uuid' )) == expected_url
148
148
149
149
150
+ @pytest .mark .skipif (sys .version_info < (3 , 8 ),
151
+ reason = "For some reasons this does not work on Python 3.7 on Ubuntu, "
152
+ "but works on my Mac. Unfortunately GHA use Python 3.7 on Ubuntu." )
150
153
@pytest .mark .parametrize ('default' , [True , False ])
151
154
@mock .patch ('reportportal_client.aio.client.aiohttp.TCPConnector' )
152
155
@pytest .mark .asyncio
@@ -163,6 +166,9 @@ async def test_verify_ssl_default(connector_mock: mock.Mock, default: bool):
163
166
assert len (ssl_context .get_ca_certs ()) > 0
164
167
165
168
169
+ @pytest .mark .skipif (sys .version_info < (3 , 8 ),
170
+ reason = "For some reasons this does not work on Python 3.7 on Ubuntu, "
171
+ "but works on my Mac. Unfortunately GHA use Python 3.7 on Ubuntu." )
166
172
@pytest .mark .parametrize ('param_value' , [False , None ])
167
173
@mock .patch ('reportportal_client.aio.client.aiohttp.TCPConnector' )
168
174
@pytest .mark .asyncio
@@ -175,6 +181,9 @@ async def test_verify_ssl_off(connector_mock: mock.Mock, param_value):
175
181
assert ssl_context is not None and isinstance (ssl_context , bool ) and not ssl_context
176
182
177
183
184
+ @pytest .mark .skipif (sys .version_info < (3 , 8 ),
185
+ reason = "For some reasons this does not work on Python 3.7 on Ubuntu, "
186
+ "but works on my Mac. Unfortunately GHA use Python 3.7 on Ubuntu." )
178
187
@mock .patch ('reportportal_client.aio.client.aiohttp.TCPConnector' )
179
188
@pytest .mark .asyncio
180
189
async def test_verify_ssl_str (connector_mock : mock .Mock ):
@@ -189,3 +198,4 @@ async def test_verify_ssl_str(connector_mock: mock.Mock):
189
198
certificate = ssl_context .get_ca_certs ()[0 ]
190
199
assert certificate ['subject' ][1 ] == (('organizationName' , 'Internet Security Research Group' ),)
191
200
assert certificate ['notAfter' ] == 'Jun 4 11:04:38 2035 GMT'
201
+
0 commit comments