Skip to content

Commit 84de6ff

Browse files
committed
Fix pythonExecutionFactory
1 parent 336a365 commit 84de6ff

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/test/common/process/pythonExecutionFactory.unit.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)