From 8f4987aca2b96455ce58ad75dbdbb05c013bd542 Mon Sep 17 00:00:00 2001 From: Romazes Date: Tue, 20 Feb 2024 17:52:14 +0200 Subject: [PATCH] rename: missed PR: #416 --- lean/commands/live/deploy.py | 2 +- tests/commands/test_live.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lean/commands/live/deploy.py b/lean/commands/live/deploy.py index d64cedff..4f406dba 100644 --- a/lean/commands/live/deploy.py +++ b/lean/commands/live/deploy.py @@ -395,7 +395,7 @@ def deploy(project: Path, [update_essential_properties_available(data_feed_configurers, kwargs)] elif brokerage is not None or len(data_provider_live) > 0: - ensure_options(["brokerage", "data_feed"]) + ensure_options(["brokerage", "data_provider_live"]) environment_name = "lean-cli" lean_config = lean_config_manager.get_complete_lean_config(environment_name, algorithm_file, None) diff --git a/tests/commands/test_live.py b/tests/commands/test_live.py index 11026ab8..915bdf80 100644 --- a/tests/commands/test_live.py +++ b/tests/commands/test_live.py @@ -545,7 +545,7 @@ def test_live_non_interactive_raise_error_when_missing_data_provider_live_option error_msg = str(result.exc_info[1]).split() - assert "data-provider-live" in error_msg + assert "--data-provider-live" in error_msg assert "data-queue-handler" not in error_msg assert result.exit_code != 0