@@ -284,16 +284,16 @@ suite('CondaEnvironment', () => {
284284
285285 teardown ( ( ) => sinon . restore ( ) ) ;
286286
287- test ( 'getExecutionInfo with a named environment should return execution info using the environment name ' , async ( ) => {
287+ test ( 'getExecutionInfo with a named environment should return execution info using the environment path ' , async ( ) => {
288288 const condaInfo = { name : 'foo' , path : 'bar' } ;
289289 const env = await createCondaEnv ( condaInfo , processService . object , fileSystem . object ) ;
290290
291291 const result = env ?. getExecutionInfo ( args , pythonPath ) ;
292292
293293 expect ( result ) . to . deep . equal ( {
294294 command : condaFile ,
295- args : [ 'run' , '-n ' , condaInfo . name , '--no-capture-output' , 'python' , OUTPUT_MARKER_SCRIPT , ...args ] ,
296- python : [ condaFile , 'run' , '-n ' , condaInfo . name , '--no-capture-output' , 'python' , OUTPUT_MARKER_SCRIPT ] ,
295+ args : [ 'run' , '-p ' , condaInfo . path , '--no-capture-output' , 'python' , OUTPUT_MARKER_SCRIPT , ...args ] ,
296+ python : [ condaFile , 'run' , '-p ' , condaInfo . path , '--no-capture-output' , 'python' , OUTPUT_MARKER_SCRIPT ] ,
297297 pythonExecutable : pythonPath ,
298298 } ) ;
299299 } ) ;
@@ -312,12 +312,12 @@ suite('CondaEnvironment', () => {
312312 } ) ;
313313 } ) ;
314314
315- test ( 'getExecutionObservableInfo with a named environment should return execution info using conda full path with the name ' , async ( ) => {
315+ test ( 'getExecutionObservableInfo with a named environment should return execution info using conda full path with the path ' , async ( ) => {
316316 const condaInfo = { name : 'foo' , path : 'bar' } ;
317317 const expected = {
318318 command : condaFile ,
319- args : [ 'run' , '-n ' , condaInfo . name , '--no-capture-output' , 'python' , OUTPUT_MARKER_SCRIPT , ...args ] ,
320- python : [ condaFile , 'run' , '-n ' , condaInfo . name , '--no-capture-output' , 'python' , OUTPUT_MARKER_SCRIPT ] ,
319+ args : [ 'run' , '-p ' , condaInfo . path , '--no-capture-output' , 'python' , OUTPUT_MARKER_SCRIPT , ...args ] ,
320+ python : [ condaFile , 'run' , '-p ' , condaInfo . path , '--no-capture-output' , 'python' , OUTPUT_MARKER_SCRIPT ] ,
321321 pythonExecutable : pythonPath ,
322322 } ;
323323 const env = await createCondaEnv ( condaInfo , processService . object , fileSystem . object ) ;
0 commit comments