Skip to content

Commit

Permalink
Test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
emlove committed Jan 16, 2024
1 parent e9b29ff commit e57cca0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from aiohttp import ClientWebSocketResponse
import aiohttp.web
import pytest
import pytest_asyncio

import jsonrpc_base
import jsonrpc_websocket.jsonrpc
Expand Down Expand Up @@ -103,13 +104,13 @@ def assertSameJSON(json1, json2):
assert json.loads(json1) == json.loads(json2)


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


@pytest.fixture()
@pytest_asyncio.fixture
async def server(client):
"""Generate a mock json server."""
server = Server('/xmlrpc', session=client, timeout=0.2)
Expand Down

0 comments on commit e57cca0

Please sign in to comment.