Patch api server for tests

This commit is contained in:
Matthias 2019-04-04 07:13:55 +02:00
parent ef2950bca2
commit 68743012e4

View File

@ -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")
def default_conf():
""" Returns validated configuration suitable for most tests """