ref: Remove useless pytest.mark.asyncio (#4364)
This commit is contained in:
parent
dc4e0e5ce1
commit
df22924b0e
22 changed files with 0 additions and 53 deletions
|
|
@ -37,7 +37,6 @@ class TestEventManager:
|
|||
assert manager.events["on_test_event"].func == manager.send_event
|
||||
|
||||
# Sending an event with valid event_type and data using pytest-asyncio plugin
|
||||
@pytest.mark.asyncio
|
||||
async def test_sending_event_with_valid_type_and_data_asyncio_plugin(self):
|
||||
async def mock_queue_put_nowait(item):
|
||||
await queue.put(item)
|
||||
|
|
@ -96,7 +95,6 @@ class TestEventManager:
|
|||
manager.register_event("invalid_name", "test_type", mock_callback)
|
||||
|
||||
# Sending an event with complex data and verifying successful event transmission
|
||||
@pytest.mark.asyncio
|
||||
async def test_sending_event_with_complex_data(self):
|
||||
queue = asyncio.Queue()
|
||||
manager = EventManager(queue)
|
||||
|
|
@ -149,7 +147,6 @@ class TestEventManager:
|
|||
# Verifying the uniqueness of event IDs for each event triggered using await with asyncio decorator
|
||||
import pytest
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_event_id_uniqueness_with_await(self):
|
||||
queue = asyncio.Queue()
|
||||
manager = EventManager(queue)
|
||||
|
|
@ -165,7 +162,6 @@ class TestEventManager:
|
|||
assert event_id_1 != event_id_2
|
||||
|
||||
# Ensuring the queue receives the correct event data format
|
||||
@pytest.mark.asyncio
|
||||
async def test_queue_receives_correct_event_data_format(self):
|
||||
async def mock_queue_put_nowait(data):
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue