@@ -319,26 +319,6 @@ suite('Interpreters - Auto Selection', () => {
319
319
expect ( selectedInterpreter ) . to . deep . equal ( interpreterInfo ) ;
320
320
expect ( eventFired ) . to . deep . equal ( false , 'event fired' ) ;
321
321
} ) ;
322
- test ( 'Storing workspace interpreter info in state store should fail' , async ( ) => {
323
- const pythonPath = 'Hello World' ;
324
- const interpreterInfo = { path : pythonPath } as any ;
325
- const resource = Uri . parse ( 'one' ) ;
326
- when (
327
- stateFactory . createGlobalPersistentState < PythonInterpreter | undefined > (
328
- preferredGlobalInterpreter ,
329
- undefined
330
- )
331
- ) . thenReturn ( instance ( state ) ) ;
332
- when ( workspaceService . getWorkspaceFolder ( resource ) ) . thenReturn ( { name : '' , index : 0 , uri : resource } ) ;
333
- when ( workspaceService . getWorkspaceFolderIdentifier ( anything ( ) , anything ( ) ) ) . thenReturn ( '' ) ;
334
-
335
- await autoSelectionService . initializeStore ( undefined ) ;
336
- await autoSelectionService . setWorkspaceInterpreter ( resource , interpreterInfo ) ;
337
- const selectedInterpreter = autoSelectionService . getAutoSelectedInterpreter ( resource ) ;
338
-
339
- verify ( state . updateValue ( interpreterInfo ) ) . never ( ) ;
340
- expect ( selectedInterpreter ? selectedInterpreter : undefined ) . to . deep . equal ( undefined , 'not undefined' ) ;
341
- } ) ;
342
322
test ( 'Store workspace interpreter info in state store' , async ( ) => {
343
323
const pythonPath = 'Hello World' ;
344
324
const interpreterInfo = { path : pythonPath } as any ;
0 commit comments