Add no-arg test
This commit is contained in:
@@ -56,7 +56,7 @@ ARGS_PLOT_PROFIT = ["pairs", "timerange", "export", "exportfilename", "db_url",
|
||||
NO_CONF_REQURIED = ["download-data", "list-timeframes", "list-markets", "list-pairs",
|
||||
"plot-dataframe", "plot-profit"]
|
||||
|
||||
NO_CONF_ALLOWED = ["create-userdir", "list-exchanges","new-hyperopt", "new-strategy"]
|
||||
NO_CONF_ALLOWED = ["create-userdir", "list-exchanges", "new-hyperopt", "new-strategy"]
|
||||
|
||||
|
||||
class Arguments:
|
||||
|
@@ -111,8 +111,7 @@ def start_new_strategy(args: Dict[str, Any]) -> None:
|
||||
logger.info(f"Writing strategy to `{new_path}`.")
|
||||
new_path.write_text(strategy_text)
|
||||
else:
|
||||
logger.warning("`new-strategy` requires --strategy to be set.")
|
||||
sys.exit(1)
|
||||
raise OperationalException("`new-strategy` requires --strategy to be set.")
|
||||
|
||||
|
||||
def start_new_hyperopt(args: Dict[str, Any]) -> None:
|
||||
@@ -135,8 +134,7 @@ def start_new_hyperopt(args: Dict[str, Any]) -> None:
|
||||
logger.info(f"Writing hyperopt to `{new_path}`.")
|
||||
new_path.write_text(strategy_text)
|
||||
else:
|
||||
logger.warning("`new-hyperopt` requires --hyperopt to be set.")
|
||||
sys.exit(1)
|
||||
raise OperationalException("`new-hyperopt` requires --hyperopt to be set.")
|
||||
|
||||
|
||||
def start_download_data(args: Dict[str, Any]) -> None:
|
||||
|
Reference in New Issue
Block a user