Skip to content

Commit c6fc75e

Browse files
author
Kartik Raj
committed
Fix single workspace test
1 parent 138f4f4 commit c6fc75e

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/test/common/installer.test.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,14 @@ import { MockModuleInstaller } from '../mocks/moduleInstaller';
100100
import { MockProcessService } from '../mocks/proc';
101101
import { UnitTestIocContainer } from '../testing/serviceRegistry';
102102
import { closeActiveWindows, initializeTest, IS_MULTI_ROOT_TEST, TEST_TIMEOUT } from '../initialize';
103+
import { IActivatedEnvironmentLaunch } from '../../client/interpreter/contracts';
104+
import { ActivatedEnvironmentLaunch } from '../../client/interpreter/virtualEnvs/activatedEnvLaunch';
105+
import {
106+
IPythonPathUpdaterServiceFactory,
107+
IPythonPathUpdaterServiceManager,
108+
} from '../../client/interpreter/configuration/types';
109+
import { PythonPathUpdaterService } from '../../client/interpreter/configuration/pythonPathUpdaterService';
110+
import { PythonPathUpdaterServiceFactory } from '../../client/interpreter/configuration/pythonPathUpdaterServiceFactory';
103111

104112
suite('Installer', () => {
105113
let ioc: UnitTestIocContainer;
@@ -169,6 +177,18 @@ suite('Installer', () => {
169177
TestFrameworkProductPathService,
170178
ProductType.TestFramework,
171179
);
180+
ioc.serviceManager.addSingleton<IActivatedEnvironmentLaunch>(
181+
IActivatedEnvironmentLaunch,
182+
ActivatedEnvironmentLaunch,
183+
);
184+
ioc.serviceManager.addSingleton<IPythonPathUpdaterServiceManager>(
185+
IPythonPathUpdaterServiceManager,
186+
PythonPathUpdaterService,
187+
);
188+
ioc.serviceManager.addSingleton<IPythonPathUpdaterServiceFactory>(
189+
IPythonPathUpdaterServiceFactory,
190+
PythonPathUpdaterServiceFactory,
191+
);
172192
ioc.serviceManager.addSingleton<IActiveResourceService>(IActiveResourceService, ActiveResourceService);
173193
ioc.serviceManager.addSingleton<IInterpreterPathService>(IInterpreterPathService, InterpreterPathService);
174194
ioc.serviceManager.addSingleton<IExtensions>(IExtensions, Extensions);

0 commit comments

Comments
 (0)