Skip to content

Commit

Permalink
Fix tests for Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Oct 10, 2023
1 parent c698f34 commit 32744f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/aio/test_aio_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def verify_attributes(expected_attributes: dict, actual_attributes: List[dict]):


@pytest.mark.skipif(sys.version_info < (3, 8),
reason="the test requires AsyncMock which was introduced in Python 3.8")
reason='the test requires AsyncMock which was introduced in Python 3.8')
@pytest.mark.asyncio
async def test_start_launch(aio_client: Client):
# noinspection PyTypeChecker
Expand Down Expand Up @@ -287,7 +287,7 @@ async def test_start_launch(aio_client: Client):


@pytest.mark.skipif(sys.version_info < (3, 8),
reason="the test requires AsyncMock which was introduced in Python 3.8")
reason='the test requires AsyncMock which was introduced in Python 3.8')
@mock.patch('reportportal_client.aio.client.async_send_event')
@pytest.mark.asyncio
async def test_start_launch_statistics_send(async_send_event):
Expand Down Expand Up @@ -316,11 +316,11 @@ async def test_start_launch_statistics_send(async_send_event):


@pytest.mark.skipif(sys.version_info < (3, 8),
reason="the test requires AsyncMock which was introduced in Python 3.8")
reason='the test requires AsyncMock which was introduced in Python 3.8')
@mock.patch('reportportal_client.aio.client.getenv')
@mock.patch('reportportal_client.aio.client.async_send_event')
@pytest.mark.asyncio
async def test_start_launch_no_statistics_send(async_send_event: mock.AsyncMock, getenv):
async def test_start_launch_no_statistics_send(async_send_event, getenv):
getenv.return_value = '1'
# noinspection PyTypeChecker
session = mock.AsyncMock()
Expand Down

0 comments on commit 32744f6

Please sign in to comment.