@@ -285,7 +285,7 @@ async def test_start_launch_statistics_send(async_send_event):
285
285
# noinspection PyTypeChecker
286
286
session = mock .AsyncMock ()
287
287
client = Client ("http://endpoint" , "project" , api_key = "api_key" )
288
- client ._skip_analytics = False
288
+ client ._skip_analytics = ""
289
289
client ._session = session
290
290
mock_basic_post_response (session )
291
291
@@ -335,7 +335,7 @@ async def test_launch_uuid_print():
335
335
endpoint = "http://endpoint" , project = "project" , api_key = "test" , launch_uuid_print = True , print_output = output_mock
336
336
)
337
337
client ._session = mock .AsyncMock ()
338
- client ._skip_analytics = True
338
+ client ._skip_analytics = "1"
339
339
await client .start_launch ("Test Launch" , timestamp ())
340
340
assert "ReportPortal Launch UUID: " in str_io .getvalue ()
341
341
@@ -353,7 +353,7 @@ async def test_no_launch_uuid_print():
353
353
print_output = output_mock ,
354
354
)
355
355
client ._session = mock .AsyncMock ()
356
- client ._skip_analytics = True
356
+ client ._skip_analytics = "1"
357
357
await client .start_launch ("Test Launch" , timestamp ())
358
358
assert "ReportPortal Launch UUID: " not in str_io .getvalue ()
359
359
@@ -363,7 +363,7 @@ async def test_no_launch_uuid_print():
363
363
async def test_launch_uuid_print_default_io (mock_stdout ):
364
364
client = Client (endpoint = "http://endpoint" , project = "project" , api_key = "test" , launch_uuid_print = True )
365
365
client ._session = mock .AsyncMock ()
366
- client ._skip_analytics = True
366
+ client ._skip_analytics = "1"
367
367
await client .start_launch ("Test Launch" , timestamp ())
368
368
assert "ReportPortal Launch UUID: " in mock_stdout .getvalue ()
369
369
@@ -373,7 +373,7 @@ async def test_launch_uuid_print_default_io(mock_stdout):
373
373
async def test_launch_uuid_print_default_print (mock_stdout ):
374
374
client = Client (endpoint = "http://endpoint" , project = "project" , api_key = "test" )
375
375
client ._session = mock .AsyncMock ()
376
- client ._skip_analytics = True
376
+ client ._skip_analytics = "1"
377
377
await client .start_launch ("Test Launch" , timestamp ())
378
378
assert "ReportPortal Launch UUID: " not in mock_stdout .getvalue ()
379
379
0 commit comments