Tomek Wójcik
c75ea4ea9d
* `bthlabs-jsonrpc-aiohttp` v1.0.0 * `bthlabs-jsonrpc-core` v1.0.0 * `bthlabs-jsonrpc-django` v1.0.0
23 lines
424 B
Python
23 lines
424 B
Python
# -*- coding: utf-8 -*-
|
|
from unittest import mock
|
|
|
|
import pytest
|
|
|
|
from bthlabs_jsonrpc_core.registry import MethodRegistry
|
|
from bthlabs_jsonrpc_core.serializer import JSONRPCSerializer
|
|
|
|
|
|
@pytest.fixture
|
|
def fake_method_registry():
|
|
return mock.Mock(spec=MethodRegistry)
|
|
|
|
|
|
@pytest.fixture
|
|
def fake_handler():
|
|
return mock.Mock()
|
|
|
|
|
|
@pytest.fixture
|
|
def fake_rpc_serializer():
|
|
return mock.Mock(spec=JSONRPCSerializer)
|