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