You've already forked hotpocket
BTHLABS-50: Safari Web extension
Co-authored-by: Tomek Wójcik <labs@tomekwojcik.pl> Co-committed-by: Tomek Wójcik <labs@tomekwojcik.pl>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
from .celery import * # noqa: F401,F403
|
||||
from .common import * # noqa: F401,F403
|
||||
from .rpc import * # noqa: F401,F403
|
||||
|
||||
20
services/packages/testing/hotpocket_testing/fixtures/rpc.py
Normal file
20
services/packages/testing/hotpocket_testing/fixtures/rpc.py
Normal file
@@ -0,0 +1,20 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# type: ignore
|
||||
from __future__ import annotations
|
||||
|
||||
import uuid
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def rpc_call_factory():
|
||||
def factory(method, params, id_=None):
|
||||
return {
|
||||
'jsonrpc': '2.0',
|
||||
'id': str(id_ or uuid.uuid4()),
|
||||
'method': method,
|
||||
'params': params,
|
||||
}
|
||||
|
||||
return factory
|
||||
Reference in New Issue
Block a user