@@ -17,6 +17,7 @@ import { PythonEnvironment } from '../../../client/pythonEnvironments/info';
17
17
import * as EnvFileTelemetry from '../../../client/telemetry/envFileTelemetry' ;
18
18
import { MockAutoSelectionService } from '../../mocks/autoSelector' ;
19
19
import { untildify } from '../../../client/common/helpers' ;
20
+ import { MockExtensions } from '../../mocks/extensions' ;
20
21
21
22
suite ( 'Python Settings - pythonPath' , ( ) => {
22
23
class CustomPythonSettings extends PythonSettings {
@@ -64,6 +65,7 @@ suite('Python Settings - pythonPath', () => {
64
65
workspaceService . object ,
65
66
interpreterPathService . object ,
66
67
undefined ,
68
+ new MockExtensions ( ) ,
67
69
) ;
68
70
configSettings . update ( pythonSettings . object ) ;
69
71
@@ -78,6 +80,7 @@ suite('Python Settings - pythonPath', () => {
78
80
workspaceService . object ,
79
81
interpreterPathService . object ,
80
82
undefined ,
83
+ new MockExtensions ( ) ,
81
84
) ;
82
85
configSettings . update ( pythonSettings . object ) ;
83
86
@@ -93,6 +96,7 @@ suite('Python Settings - pythonPath', () => {
93
96
workspaceService . object ,
94
97
interpreterPathService . object ,
95
98
undefined ,
99
+ new MockExtensions ( ) ,
96
100
) ;
97
101
98
102
configSettings . update ( pythonSettings . object ) ;
@@ -110,6 +114,7 @@ suite('Python Settings - pythonPath', () => {
110
114
workspaceService . object ,
111
115
interpreterPathService . object ,
112
116
undefined ,
117
+ new MockExtensions ( ) ,
113
118
) ;
114
119
configSettings . update ( pythonSettings . object ) ;
115
120
@@ -126,6 +131,7 @@ suite('Python Settings - pythonPath', () => {
126
131
workspaceService . object ,
127
132
interpreterPathService . object ,
128
133
undefined ,
134
+ new MockExtensions ( ) ,
129
135
) ;
130
136
configSettings . update ( pythonSettings . object ) ;
131
137
@@ -145,6 +151,7 @@ suite('Python Settings - pythonPath', () => {
145
151
workspaceService . object ,
146
152
interpreterPathService . object ,
147
153
undefined ,
154
+ new MockExtensions ( ) ,
148
155
) ;
149
156
configSettings . update ( pythonSettings . object ) ;
150
157
@@ -166,6 +173,7 @@ suite('Python Settings - pythonPath', () => {
166
173
workspaceService . object ,
167
174
interpreterPathService . object ,
168
175
undefined ,
176
+ new MockExtensions ( )
169
177
) ;
170
178
configSettings . update ( pythonSettings . object ) ;
171
179
@@ -184,6 +192,7 @@ suite('Python Settings - pythonPath', () => {
184
192
workspaceService . object ,
185
193
interpreterPathService . object ,
186
194
undefined ,
195
+ new MockExtensions ( ) ,
187
196
) ;
188
197
interpreterPathService . setup ( ( i ) => i . get ( typemoq . It . isAny ( ) ) ) . returns ( ( ) => 'custom' ) ;
189
198
pythonSettings . setup ( ( p ) => p . get ( typemoq . It . isValue ( 'defaultInterpreterPath' ) ) ) . returns ( ( ) => 'python' ) ;
@@ -204,6 +213,7 @@ suite('Python Settings - pythonPath', () => {
204
213
workspaceService . object ,
205
214
interpreterPathService . object ,
206
215
undefined ,
216
+ new MockExtensions ( ) ,
207
217
) ;
208
218
interpreterPathService . setup ( ( i ) => i . get ( resource ) ) . returns ( ( ) => 'python' ) ;
209
219
configSettings . update ( pythonSettings . object ) ;
0 commit comments