Patch api server for tests
This commit is contained in:
parent
ef2950bca2
commit
68743012e4
@ -134,6 +134,15 @@ def patch_coinmarketcap(mocker) -> None:
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
def patch_apiserver(mocker) -> None:
|
||||||
|
mocker.patch.multiple(
|
||||||
|
'freqtrade.rpc.api_server.ApiServer',
|
||||||
|
run=MagicMock(),
|
||||||
|
register_rest_other=MagicMock(),
|
||||||
|
register_rest_rpc_urls=MagicMock(),
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="function")
|
@pytest.fixture(scope="function")
|
||||||
def default_conf():
|
def default_conf():
|
||||||
""" Returns validated configuration suitable for most tests """
|
""" Returns validated configuration suitable for most tests """
|
||||||
|
Loading…
Reference in New Issue
Block a user