chore: fix missed dependencies for deploy_ui
This commit is contained in:
@@ -21,7 +21,7 @@ async def fallback():
|
|||||||
|
|
||||||
@router_ui.get("/ui_version", include_in_schema=False)
|
@router_ui.get("/ui_version", include_in_schema=False)
|
||||||
async def ui_version():
|
async def ui_version():
|
||||||
from freqtrade.commands.deploy_commands import read_ui_version
|
from freqtrade.commands.deploy_ui import read_ui_version
|
||||||
|
|
||||||
uibase = Path(__file__).parent / "ui/installed/"
|
uibase = Path(__file__).parent / "ui/installed/"
|
||||||
version = read_ui_version(uibase)
|
version = read_ui_version(uibase)
|
||||||
|
|||||||
@@ -185,7 +185,7 @@ def test_api_ui_fallback(botclient, mocker):
|
|||||||
def test_api_ui_version(botclient, mocker):
|
def test_api_ui_version(botclient, mocker):
|
||||||
_ftbot, client = botclient
|
_ftbot, client = botclient
|
||||||
|
|
||||||
mocker.patch("freqtrade.commands.deploy_commands.read_ui_version", return_value="0.1.2")
|
mocker.patch("freqtrade.commands.deploy_ui.read_ui_version", return_value="0.1.2")
|
||||||
rc = client_get(client, "/ui_version")
|
rc = client_get(client, "/ui_version")
|
||||||
assert rc.status_code == 200
|
assert rc.status_code == 200
|
||||||
assert rc.json()["version"] == "0.1.2"
|
assert rc.json()["version"] == "0.1.2"
|
||||||
|
|||||||
Reference in New Issue
Block a user