@@ -89,6 +89,7 @@ suite('Process - PythonExecutionFactory', () => {
8989 let autoSelection : IInterpreterAutoSelectionService ;
9090 let interpreterPathExpHelper : IInterpreterPathService ;
9191 let getPixiEnvironmentFromInterpreterStub : sinon . SinonStub ;
92+ let getPixiStub : sinon . SinonStub ;
9293 const pythonPath = 'path/to/python' ;
9394 setup ( ( ) => {
9495 sinon . stub ( Conda , 'getConda' ) . resolves ( new Conda ( 'conda' ) ) ;
@@ -97,6 +98,9 @@ suite('Process - PythonExecutionFactory', () => {
9798 getPixiEnvironmentFromInterpreterStub = sinon . stub ( pixi , 'getPixiEnvironmentFromInterpreter' ) ;
9899 getPixiEnvironmentFromInterpreterStub . resolves ( undefined ) ;
99100
101+ getPixiStub = sinon . stub ( pixi , 'getPixi' ) ;
102+ getPixiStub . resolves ( undefined ) ;
103+
100104 activationHelper = mock ( EnvironmentActivationService ) ;
101105 processFactory = mock ( ProcessServiceFactory ) ;
102106 configService = mock ( ConfigurationService ) ;
@@ -142,6 +146,9 @@ suite('Process - PythonExecutionFactory', () => {
142146 when ( serviceContainer . tryGet < IInterpreterService > ( IInterpreterService ) ) . thenReturn (
143147 instance ( interpreterService ) ,
144148 ) ;
149+ when ( serviceContainer . get < IConfigurationService > ( IConfigurationService ) ) . thenReturn (
150+ instance ( configService ) ,
151+ ) ;
145152 factory = new PythonExecutionFactory (
146153 instance ( serviceContainer ) ,
147154 instance ( activationHelper ) ,
0 commit comments