@@ -71,9 +71,6 @@ async def test_retries_param(retry_num, expected_class, expected_param):
71
71
assert getattr (session , '_RetryingClientSession__retry_number' ) == expected_param
72
72
73
73
74
- @pytest .mark .skipif (sys .version_info < (3 , 8 ),
75
- reason = "For some reasons this does not work on Python 3.7 on Ubuntu, "
76
- "but works on my Mac. Unfortunately GHA use Python 3.7 on Ubuntu." )
77
74
@pytest .mark .parametrize (
78
75
'timeout_param, expected_connect_param, expected_sock_read_param' ,
79
76
[
@@ -134,8 +131,6 @@ def test_clone():
134
131
EXPECTED_DEBUG_URL = f'http://endpoint/ui/#project/userdebug/all/{ LAUNCH_ID } '
135
132
136
133
137
- @pytest .mark .skipif (sys .version_info < (3 , 8 ),
138
- reason = "the test requires AsyncMock which was introduced in Python 3.8" )
139
134
@pytest .mark .parametrize (
140
135
'launch_mode, project_name, expected_url' ,
141
136
[
@@ -160,9 +155,6 @@ async def get_call(*args, **kwargs):
160
155
assert await (aio_client .get_launch_ui_url ('test_launch_uuid' )) == expected_url
161
156
162
157
163
- @pytest .mark .skipif (sys .version_info < (3 , 8 ),
164
- reason = "For some reasons this does not work on Python 3.7 on Ubuntu, "
165
- "but works on my Mac. Unfortunately GHA use Python 3.7 on Ubuntu." )
166
158
@pytest .mark .parametrize ('default' , [True , False ])
167
159
@mock .patch ('reportportal_client.aio.client.aiohttp.TCPConnector' )
168
160
@pytest .mark .asyncio
@@ -179,9 +171,6 @@ async def test_verify_ssl_default(connector_mock: mock.Mock, default: bool):
179
171
assert len (ssl_context .get_ca_certs ()) > 0
180
172
181
173
182
- @pytest .mark .skipif (sys .version_info < (3 , 8 ),
183
- reason = "For some reasons this does not work on Python 3.7 on Ubuntu, "
184
- "but works on my Mac. Unfortunately GHA use Python 3.7 on Ubuntu." )
185
174
@pytest .mark .parametrize ('param_value' , [False , None ])
186
175
@mock .patch ('reportportal_client.aio.client.aiohttp.TCPConnector' )
187
176
@pytest .mark .asyncio
@@ -194,9 +183,6 @@ async def test_verify_ssl_off(connector_mock: mock.Mock, param_value):
194
183
assert ssl_context is not None and isinstance (ssl_context , bool ) and not ssl_context
195
184
196
185
197
- @pytest .mark .skipif (sys .version_info < (3 , 8 ),
198
- reason = "For some reasons this does not work on Python 3.7 on Ubuntu, "
199
- "but works on my Mac. Unfortunately GHA use Python 3.7 on Ubuntu." )
200
186
@mock .patch ('reportportal_client.aio.client.aiohttp.TCPConnector' )
201
187
@pytest .mark .asyncio
202
188
async def test_verify_ssl_str (connector_mock : mock .Mock ):
@@ -213,9 +199,6 @@ async def test_verify_ssl_str(connector_mock: mock.Mock):
213
199
assert certificate ['notAfter' ] == 'Jun 4 11:04:38 2035 GMT'
214
200
215
201
216
- @pytest .mark .skipif (sys .version_info < (3 , 8 ),
217
- reason = "For some reasons this does not work on Python 3.7 on Ubuntu, "
218
- "but works on my Mac. Unfortunately GHA use Python 3.7 on Ubuntu." )
219
202
@mock .patch ('reportportal_client.aio.client.aiohttp.TCPConnector' )
220
203
@pytest .mark .asyncio
221
204
async def test_keepalive_timeout (connector_mock : mock .Mock ):
@@ -229,8 +212,6 @@ async def test_keepalive_timeout(connector_mock: mock.Mock):
229
212
assert timeout is not None and timeout == keepalive_timeout
230
213
231
214
232
- @pytest .mark .skipif (sys .version_info < (3 , 8 ),
233
- reason = "the test requires AsyncMock which was introduced in Python 3.8" )
234
215
@pytest .mark .asyncio
235
216
async def test_close (aio_client : Client ):
236
217
# noinspection PyTypeChecker
@@ -260,8 +241,6 @@ def verify_attributes(expected_attributes: Optional[dict], actual_attributes: Op
260
241
assert attribute .get ('system' ) == hidden
261
242
262
243
263
- @pytest .mark .skipif (sys .version_info < (3 , 8 ),
264
- reason = 'the test requires AsyncMock which was introduced in Python 3.8' )
265
244
@pytest .mark .asyncio
266
245
async def test_start_launch (aio_client : Client ):
267
246
# noinspection PyTypeChecker
@@ -292,8 +271,6 @@ async def test_start_launch(aio_client: Client):
292
271
verify_attributes (attributes , actual_attributes )
293
272
294
273
295
- @pytest .mark .skipif (sys .version_info < (3 , 8 ),
296
- reason = 'the test requires AsyncMock which was introduced in Python 3.8' )
297
274
@mock .patch ('reportportal_client.aio.client.async_send_event' )
298
275
@pytest .mark .asyncio
299
276
async def test_start_launch_statistics_send (async_send_event ):
@@ -321,8 +298,6 @@ async def test_start_launch_statistics_send(async_send_event):
321
298
assert len (kwargs .items ()) == 0
322
299
323
300
324
- @pytest .mark .skipif (sys .version_info < (3 , 8 ),
325
- reason = 'the test requires AsyncMock which was introduced in Python 3.8' )
326
301
@mock .patch ('reportportal_client.aio.client.getenv' )
327
302
@mock .patch ('reportportal_client.aio.client.async_send_event' )
328
303
@pytest .mark .asyncio
@@ -343,8 +318,6 @@ async def test_start_launch_no_statistics_send(async_send_event, getenv):
343
318
async_send_event .assert_not_called ()
344
319
345
320
346
- @pytest .mark .skipif (sys .version_info < (3 , 8 ),
347
- reason = "the test requires AsyncMock which was introduced in Python 3.8" )
348
321
@pytest .mark .asyncio
349
322
async def test_launch_uuid_print ():
350
323
str_io = StringIO ()
@@ -358,8 +331,6 @@ async def test_launch_uuid_print():
358
331
assert 'ReportPortal Launch UUID: ' in str_io .getvalue ()
359
332
360
333
361
- @pytest .mark .skipif (sys .version_info < (3 , 8 ),
362
- reason = "the test requires AsyncMock which was introduced in Python 3.8" )
363
334
@pytest .mark .asyncio
364
335
async def test_no_launch_uuid_print ():
365
336
str_io = StringIO ()
@@ -373,8 +344,6 @@ async def test_no_launch_uuid_print():
373
344
assert 'ReportPortal Launch UUID: ' not in str_io .getvalue ()
374
345
375
346
376
- @pytest .mark .skipif (sys .version_info < (3 , 8 ),
377
- reason = "the test requires AsyncMock which was introduced in Python 3.8" )
378
347
@pytest .mark .asyncio
379
348
@mock .patch ('reportportal_client.client.sys.stdout' , new_callable = StringIO )
380
349
async def test_launch_uuid_print_default_io (mock_stdout ):
@@ -386,8 +355,6 @@ async def test_launch_uuid_print_default_io(mock_stdout):
386
355
assert 'ReportPortal Launch UUID: ' in mock_stdout .getvalue ()
387
356
388
357
389
- @pytest .mark .skipif (sys .version_info < (3 , 8 ),
390
- reason = "the test requires AsyncMock which was introduced in Python 3.8" )
391
358
@pytest .mark .asyncio
392
359
@mock .patch ('reportportal_client.client.sys.stdout' , new_callable = StringIO )
393
360
async def test_launch_uuid_print_default_print (mock_stdout ):
@@ -427,8 +394,6 @@ def request_error(*args, **kwargs):
427
394
raise ValueError ()
428
395
429
396
430
- @pytest .mark .skipif (sys .version_info < (3 , 8 ),
431
- reason = "the test requires AsyncMock which was introduced in Python 3.8" )
432
397
@pytest .mark .parametrize (
433
398
'requests_method, client_method, client_params' ,
434
399
[
@@ -479,8 +444,6 @@ def verify_parameters(expected_parameters: dict, actual_parameters: List[dict]):
479
444
assert expected_parameters .get (attribute .get ('key' )) == attribute .get ('value' )
480
445
481
446
482
- @pytest .mark .skipif (sys .version_info < (3 , 8 ),
483
- reason = 'the test requires AsyncMock which was introduced in Python 3.8' )
484
447
@pytest .mark .parametrize (
485
448
'parent_id, expected_uri' ,
486
449
[
@@ -533,8 +496,6 @@ async def test_start_test_item(aio_client: Client, parent_id, expected_uri):
533
496
verify_parameters (parameters , actual_parameters )
534
497
535
498
536
- @pytest .mark .skipif (sys .version_info < (3 , 8 ),
537
- reason = 'the test requires AsyncMock which was introduced in Python 3.8' )
538
499
@pytest .mark .asyncio
539
500
async def test_start_test_item_default_values (aio_client : Client ):
540
501
# noinspection PyTypeChecker
@@ -576,8 +537,6 @@ def mock_basic_put_response(session):
576
537
session .put .return_value = return_object
577
538
578
539
579
- @pytest .mark .skipif (sys .version_info < (3 , 8 ),
580
- reason = 'the test requires AsyncMock which was introduced in Python 3.8' )
581
540
@pytest .mark .asyncio
582
541
async def test_finish_test_item (aio_client : Client ):
583
542
# noinspection PyTypeChecker
@@ -618,8 +577,6 @@ async def test_finish_test_item(aio_client: Client):
618
577
assert entry [1 ] == expected_issue [entry [0 ]]
619
578
620
579
621
- @pytest .mark .skipif (sys .version_info < (3 , 8 ),
622
- reason = 'the test requires AsyncMock which was introduced in Python 3.8' )
623
580
@pytest .mark .asyncio
624
581
async def test_finish_test_item_default_values (aio_client : Client ):
625
582
# noinspection PyTypeChecker
@@ -649,8 +606,6 @@ async def test_finish_test_item_default_values(aio_client: Client):
649
606
assert actual_json .get ('issue' ) is None
650
607
651
608
652
- @pytest .mark .skipif (sys .version_info < (3 , 8 ),
653
- reason = 'the test requires AsyncMock which was introduced in Python 3.8' )
654
609
@pytest .mark .asyncio
655
610
async def test_finish_launch (aio_client : Client ):
656
611
# noinspection PyTypeChecker
@@ -678,8 +633,6 @@ async def test_finish_launch(aio_client: Client):
678
633
verify_attributes (attributes , actual_attributes )
679
634
680
635
681
- @pytest .mark .skipif (sys .version_info < (3 , 8 ),
682
- reason = 'the test requires AsyncMock which was introduced in Python 3.8' )
683
636
@pytest .mark .asyncio
684
637
async def test_finish_launch_default_values (aio_client : Client ):
685
638
# noinspection PyTypeChecker
@@ -711,8 +664,6 @@ def mock_basic_get_response(session):
711
664
session .get .return_value = return_object
712
665
713
666
714
- @pytest .mark .skipif (sys .version_info < (3 , 8 ),
715
- reason = 'the test requires AsyncMock which was introduced in Python 3.8' )
716
667
@pytest .mark .asyncio
717
668
async def test_update_item (aio_client : Client ):
718
669
# noinspection PyTypeChecker
@@ -738,8 +689,6 @@ async def test_update_item(aio_client: Client):
738
689
verify_attributes (attributes , actual_attributes )
739
690
740
691
741
- @pytest .mark .skipif (sys .version_info < (3 , 8 ),
742
- reason = 'the test requires AsyncMock which was introduced in Python 3.8' )
743
692
@pytest .mark .asyncio
744
693
async def test_get_item_id_by_uuid (aio_client : Client ):
745
694
# noinspection PyTypeChecker
@@ -756,8 +705,6 @@ async def test_get_item_id_by_uuid(aio_client: Client):
756
705
assert expected_uri == call_args [0 ][0 ]
757
706
758
707
759
- @pytest .mark .skipif (sys .version_info < (3 , 8 ),
760
- reason = 'the test requires AsyncMock which was introduced in Python 3.8' )
761
708
@pytest .mark .asyncio
762
709
async def test_get_launch_ui_url (aio_client : Client ):
763
710
# noinspection PyTypeChecker
@@ -774,8 +721,6 @@ async def test_get_launch_ui_url(aio_client: Client):
774
721
assert expected_uri == call_args [0 ][0 ]
775
722
776
723
777
- @pytest .mark .skipif (sys .version_info < (3 , 8 ),
778
- reason = 'the test requires AsyncMock which was introduced in Python 3.8' )
779
724
@pytest .mark .parametrize (
780
725
'method, mock_method, call_method, arguments' ,
781
726
[
0 commit comments