@@ -252,6 +252,20 @@ func TestPrepare(t *testing.T) {
252252 AndRunCmd ([]string {"python" , "-m" , "debugpy" , "--listen" , "2345" , "app.py" }),
253253 expected : pythonContext {debugMode : "debugpy" , port : 2345 , wait : false , major : 3 , minor : 7 , args : []string {"python" , "-m" , "debugpy" , "--listen" , "2345" , "app.py" }, env : env {"PYTHONPATH" : dbgRoot + "/python/lib/python3.7/site-packages" }},
254254 },
255+ {
256+ description : "debugpy with module" ,
257+ pc : pythonContext {debugMode : "debugpy" , port : 2345 , wait : false , args : []string {"python" , "-m" , "gunicorn" , "app:app" }, env : nil },
258+ commands : RunCmdOut ([]string {"python" , "-V" }, "Python 3.7.4\n " ).
259+ AndRunCmd ([]string {"python" , "-m" , "debugpy" , "--listen" , "2345" , "app.py" }),
260+ expected : pythonContext {debugMode : "debugpy" , port : 2345 , wait : false , major : 3 , minor : 7 , args : []string {"python" , "-m" , "debugpy" , "--listen" , "2345" , "-m" , "gunicorn" , "app:app" }, env : env {"PYTHONPATH" : dbgRoot + "/python/lib/python3.7/site-packages" }},
261+ },
262+ {
263+ description : "debugpy with module (no space)" ,
264+ pc : pythonContext {debugMode : "debugpy" , port : 2345 , wait : false , args : []string {"python" , "-mgunicorn" , "app:app" }, env : nil },
265+ commands : RunCmdOut ([]string {"python" , "-V" }, "Python 3.7.4\n " ).
266+ AndRunCmd ([]string {"python" , "-m" , "debugpy" , "--listen" , "2345" , "app.py" }),
267+ expected : pythonContext {debugMode : "debugpy" , port : 2345 , wait : false , major : 3 , minor : 7 , args : []string {"python" , "-m" , "debugpy" , "--listen" , "2345" , "-m" , "gunicorn" , "app:app" }, env : env {"PYTHONPATH" : dbgRoot + "/python/lib/python3.7/site-packages" }},
268+ },
255269 {
256270 description : "debugpy with wait" ,
257271 pc : pythonContext {debugMode : "debugpy" , port : 2345 , wait : true , args : []string {"python" , "app.py" }, env : nil },
0 commit comments