@@ -283,6 +283,8 @@ def _ensure_rider_debugger_config_files_exist(project_dir: Path) -> None:
283283 ("PTVSD" , DebuggingMethod .PTVSD ),
284284 ("vsdbg" , DebuggingMethod .VSDBG ),
285285 ("VSDBG" , DebuggingMethod .VSDBG ),
286+ ("debugpy" , DebuggingMethod .DebugPy ),
287+ ("DebugPy" , DebuggingMethod .DebugPy ),
286288 ("rider" , DebuggingMethod .Rider ),
287289 ("Rider" , DebuggingMethod .Rider )])
288290def test_backtest_passes_correct_debugging_method_to_lean_runner (value : str , debugging_method : DebuggingMethod ) -> None :
@@ -348,7 +350,8 @@ def test_backtest_auto_updates_outdated_python_pycharm_debug_config() -> None:
348350 assert workspace_xml .find (".//mapping[@remote-root='/Lean/Launcher/bin/Debug']" ) is None
349351
350352
351- def test_backtest_auto_updates_outdated_python_vscode_debug_config () -> None :
353+ @pytest .mark .parametrize ("value" , ["ptvsd" , "debugpy" ])
354+ def test_backtest_auto_updates_outdated_python_vscode_debug_config (value ) -> None :
352355 create_fake_lean_cli_directory ()
353356
354357 lean_config_manager = container .lean_config_manager
@@ -380,7 +383,7 @@ def test_backtest_auto_updates_outdated_python_vscode_debug_config() -> None:
380383 ]
381384 }))
382385
383- result = CliRunner ().invoke (lean , ["backtest" , "Python Project" , "--debug" , "ptvsd" ])
386+ result = CliRunner ().invoke (lean , ["backtest" , "Python Project" , "--debug" , value ])
384387
385388 assert result .exit_code == 0
386389
0 commit comments