@@ -8,7 +8,7 @@ import * as TypeMoq from 'typemoq';
8
8
import * as vscode from 'vscode' ;
9
9
import { IWorkspaceService } from '../../client/common/application/types' ;
10
10
import { IFileSystem , IPlatformService } from '../../client/common/platform/types' ;
11
- import { IConfigurationService , IPythonSettings } from '../../client/common/types' ;
11
+ import { IConfigurationService , IExtensions , IPythonSettings } from '../../client/common/types' ;
12
12
import { IServiceContainer } from '../../client/ioc/types' ;
13
13
import { IToolsExtensionPrompt } from '../../client/linters/prompts/types' ;
14
14
import { Pylint } from '../../client/linters/pylint' ;
@@ -22,6 +22,7 @@ suite('Pylint - Function runLinter()', () => {
22
22
let manager : TypeMoq . IMock < ILinterManager > ;
23
23
let _info : TypeMoq . IMock < ILinterInfo > ;
24
24
let platformService : TypeMoq . IMock < IPlatformService > ;
25
+ let extensionsService : TypeMoq . IMock < IExtensions > ;
25
26
let run : sinon . SinonStub ;
26
27
let parseMessagesSeverity : sinon . SinonStub ;
27
28
let extensionPrompt : TypeMoq . IMock < IToolsExtensionPrompt > ;
@@ -77,6 +78,7 @@ suite('Pylint - Function runLinter()', () => {
77
78
serviceContainer = TypeMoq . Mock . ofType < IServiceContainer > ( ) ;
78
79
workspaceService = TypeMoq . Mock . ofType < IWorkspaceService > ( ) ;
79
80
configService = TypeMoq . Mock . ofType < IConfigurationService > ( ) ;
81
+ extensionsService = TypeMoq . Mock . ofType < IExtensions > ( ) ;
80
82
manager = TypeMoq . Mock . ofType < ILinterManager > ( ) ;
81
83
serviceContainer . setup ( ( c ) => c . get ( TypeMoq . It . isValue ( ILinterManager ) ) ) . returns ( ( ) => manager . object ) ;
82
84
serviceContainer
@@ -89,6 +91,7 @@ suite('Pylint - Function runLinter()', () => {
89
91
serviceContainer
90
92
. setup ( ( c ) => c . get ( TypeMoq . It . isValue ( IPlatformService ) ) )
91
93
. returns ( ( ) => platformService . object ) ;
94
+ serviceContainer . setup ( ( c ) => c . get ( TypeMoq . It . isValue ( IExtensions ) ) ) . returns ( ( ) => extensionsService . object ) ;
92
95
fileSystem = TypeMoq . Mock . ofType < IFileSystem > ( ) ;
93
96
fileSystem
94
97
. setup ( ( x ) => x . arePathsSame ( TypeMoq . It . isAnyString ( ) , TypeMoq . It . isAnyString ( ) ) )
0 commit comments