Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ def assertSameJSON(json1, json2):


@pytest_asyncio.fixture
async def client(event_loop):
async def client():
"""Generate a mock json server."""
return JsonTestClient(event_loop)
return JsonTestClient(asyncio.get_running_loop())


@pytest_asyncio.fixture
Expand Down Expand Up @@ -350,9 +350,11 @@ def handler3(server, data):
await server.foobar(**{'foo': 'bar'}, _notification=True)


async def test_simultaneous_calls(event_loop, server):
async def test_simultaneous_calls(server):
# Test that calls can be delivered simultaneously, and can return out
# of order
event_loop = asyncio.get_running_loop()

def handler(server, data):
pass

Expand Down