Add test for start_websever

This commit is contained in:
Matthias
2021-04-01 07:49:54 +02:00
parent 134c61126e
commit 8566306010
2 changed files with 15 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
import logging
from typing import Any, Dict
logger = logging.getLogger(__name__)
@@ -32,9 +33,9 @@ def start_webserver(args: Dict[str, Any]) -> None:
"""
Main entry point for webserver mode
"""
from freqtrade.rpc.api_server import ApiServer
from freqtrade.configuration import Configuration
from freqtrade.enums import RunMode
from freqtrade.rpc.api_server import ApiServer
# Initialize configuration
config = Configuration(args, RunMode.WEBSERVER).get_config()