@@ -167,14 +167,6 @@ suite('Terminal Service helpers', () => {
167167 doSetup ( ) ;
168168 when ( configurationService . getSettings ( resource ) ) . thenReturn ( instance ( pythonSettings ) ) ;
169169 } ) ;
170- test ( 'Activation command must be empty if activation of terminals is disabled' , async ( ) => {
171- when ( pythonSettings . terminal ) . thenReturn ( { activateEnvironment : false } as any ) ;
172-
173- const cmd = await helper . getEnvironmentActivationCommands ( anything ( ) , resource ) ;
174-
175- expect ( cmd ) . to . equal ( undefined , 'Command must be undefined' ) ;
176- verify ( pythonSettings . terminal ) . once ( ) ;
177- } ) ;
178170 function ensureCondaIsSupported (
179171 isSupported : boolean ,
180172 pythonPath : string ,
@@ -195,7 +187,6 @@ suite('Terminal Service helpers', () => {
195187 const cmd = await helper . getEnvironmentActivationCommands ( anything ( ) , resource ) ;
196188
197189 expect ( cmd ) . to . equal ( condaActivationCommands ) ;
198- verify ( pythonSettings . terminal ) . once ( ) ;
199190 verify ( pythonSettings . pythonPath ) . once ( ) ;
200191 verify ( condaService . isCondaEnvironment ( pythonPath ) ) . once ( ) ;
201192 verify ( condaActivationProvider . getActivationCommands ( resource , anything ( ) ) ) . once ( ) ;
@@ -215,7 +206,6 @@ suite('Terminal Service helpers', () => {
215206 ) ;
216207
217208 expect ( cmd ) . to . equal ( undefined , 'Command must be undefined' ) ;
218- verify ( pythonSettings . terminal ) . once ( ) ;
219209 verify ( pythonSettings . pythonPath ) . once ( ) ;
220210 verify ( condaService . isCondaEnvironment ( pythonPath ) ) . once ( ) ;
221211 verify ( bashActivationProvider . isShellSupported ( anything ( ) ) ) . atLeast ( 1 ) ;
@@ -238,7 +228,6 @@ suite('Terminal Service helpers', () => {
238228 const cmd = await helper . getEnvironmentActivationCommands ( anything ( ) , resource ) ;
239229
240230 expect ( cmd ) . to . deep . equal ( expectCommand ) ;
241- verify ( pythonSettings . terminal ) . once ( ) ;
242231 verify ( pythonSettings . pythonPath ) . once ( ) ;
243232 verify ( condaService . isCondaEnvironment ( pythonPath ) ) . once ( ) ;
244233 verify ( bashActivationProvider . isShellSupported ( anything ( ) ) ) . atLeast ( 1 ) ;
@@ -265,7 +254,6 @@ suite('Terminal Service helpers', () => {
265254 const cmd = await helper . getEnvironmentActivationCommands ( anything ( ) , resource ) ;
266255
267256 expect ( cmd ) . to . deep . equal ( expectCommand ) ;
268- verify ( pythonSettings . terminal ) . once ( ) ;
269257 verify ( pythonSettings . pythonPath ) . once ( ) ;
270258 verify ( condaService . isCondaEnvironment ( pythonPath ) ) . once ( ) ;
271259 verify ( bashActivationProvider . isShellSupported ( anything ( ) ) ) . atLeast ( 1 ) ;
@@ -290,7 +278,6 @@ suite('Terminal Service helpers', () => {
290278 const cmd = await helper . getEnvironmentActivationCommands ( anything ( ) , resource ) ;
291279
292280 expect ( cmd ) . to . deep . equal ( expectCommand ) ;
293- verify ( pythonSettings . terminal ) . once ( ) ;
294281 verify ( pythonSettings . pythonPath ) . once ( ) ;
295282 verify ( condaService . isCondaEnvironment ( pythonPath ) ) . once ( ) ;
296283 verify ( bashActivationProvider . isShellSupported ( anything ( ) ) ) . atLeast ( 1 ) ;
@@ -315,7 +302,6 @@ suite('Terminal Service helpers', () => {
315302 const cmd = await helper . getEnvironmentActivationCommands ( anything ( ) , resource ) ;
316303
317304 expect ( cmd ) . to . deep . equal ( expectCommand ) ;
318- verify ( pythonSettings . terminal ) . once ( ) ;
319305 verify ( pythonSettings . pythonPath ) . once ( ) ;
320306 verify ( condaService . isCondaEnvironment ( pythonPath ) ) . once ( ) ;
321307 verify ( bashActivationProvider . isShellSupported ( anything ( ) ) ) . atLeast ( 1 ) ;
@@ -359,7 +345,6 @@ suite('Terminal Service helpers', () => {
359345 ) ;
360346
361347 expect ( cmd ) . to . equal ( undefined , 'Command must be undefined' ) ;
362- verify ( pythonSettings . terminal ) . once ( ) ;
363348 verify ( pythonSettings . pythonPath ) . times ( interpreter ? 0 : 1 ) ;
364349 verify ( condaService . isCondaEnvironment ( pythonPath ) ) . times ( interpreter ? 0 : 1 ) ;
365350 verify ( bashActivationProvider . isShellSupported ( shellToExpect ) ) . atLeast ( 1 ) ;
0 commit comments