Skip to content

Commit 2941d95

Browse files
committed
Fix warnings
1 parent 763824c commit 2941d95

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/aio/test_aio_client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ async def test_start_launch_statistics_send(async_send_event):
285285
# noinspection PyTypeChecker
286286
session = mock.AsyncMock()
287287
client = Client("http://endpoint", "project", api_key="api_key")
288-
client._skip_analytics = False
288+
client._skip_analytics = "1"
289289
client._session = session
290290
mock_basic_post_response(session)
291291

@@ -335,7 +335,7 @@ async def test_launch_uuid_print():
335335
endpoint="http://endpoint", project="project", api_key="test", launch_uuid_print=True, print_output=output_mock
336336
)
337337
client._session = mock.AsyncMock()
338-
client._skip_analytics = True
338+
client._skip_analytics = "1"
339339
await client.start_launch("Test Launch", timestamp())
340340
assert "ReportPortal Launch UUID: " in str_io.getvalue()
341341

@@ -353,7 +353,7 @@ async def test_no_launch_uuid_print():
353353
print_output=output_mock,
354354
)
355355
client._session = mock.AsyncMock()
356-
client._skip_analytics = True
356+
client._skip_analytics = "1"
357357
await client.start_launch("Test Launch", timestamp())
358358
assert "ReportPortal Launch UUID: " not in str_io.getvalue()
359359

@@ -363,7 +363,7 @@ async def test_no_launch_uuid_print():
363363
async def test_launch_uuid_print_default_io(mock_stdout):
364364
client = Client(endpoint="http://endpoint", project="project", api_key="test", launch_uuid_print=True)
365365
client._session = mock.AsyncMock()
366-
client._skip_analytics = True
366+
client._skip_analytics = "1"
367367
await client.start_launch("Test Launch", timestamp())
368368
assert "ReportPortal Launch UUID: " in mock_stdout.getvalue()
369369

@@ -373,7 +373,7 @@ async def test_launch_uuid_print_default_io(mock_stdout):
373373
async def test_launch_uuid_print_default_print(mock_stdout):
374374
client = Client(endpoint="http://endpoint", project="project", api_key="test")
375375
client._session = mock.AsyncMock()
376-
client._skip_analytics = True
376+
client._skip_analytics = "1"
377377
await client.start_launch("Test Launch", timestamp())
378378
assert "ReportPortal Launch UUID: " not in mock_stdout.getvalue()
379379

0 commit comments

Comments
 (0)