@@ -45,7 +45,7 @@ suite('Interpreter Path Command', () => {
45
45
test ( 'If `workspaceFolder` property exists in `args`, it is used to retrieve setting from config' , async ( ) => {
46
46
const args = { workspaceFolder : 'folderPath' } ;
47
47
when ( interpreterService . getActiveInterpreter ( anything ( ) ) ) . thenCall ( ( arg ) => {
48
- assert . deepEqual ( arg , Uri . parse ( 'folderPath' ) ) ;
48
+ assert . deepEqual ( arg , Uri . file ( 'folderPath' ) ) ;
49
49
50
50
return Promise . resolve ( { path : 'settingValue' } ) as unknown ;
51
51
} ) ;
@@ -56,7 +56,7 @@ suite('Interpreter Path Command', () => {
56
56
test ( 'If `args[1]` is defined, it is used to retrieve setting from config' , async ( ) => {
57
57
const args = [ 'command' , 'folderPath' ] ;
58
58
when ( interpreterService . getActiveInterpreter ( anything ( ) ) ) . thenCall ( ( arg ) => {
59
- assert . deepEqual ( arg , Uri . parse ( 'folderPath' ) ) ;
59
+ assert . deepEqual ( arg , Uri . file ( 'folderPath' ) ) ;
60
60
61
61
return Promise . resolve ( { path : 'settingValue' } ) as unknown ;
62
62
} ) ;
@@ -73,14 +73,4 @@ suite('Interpreter Path Command', () => {
73
73
const setting = await interpreterPathCommand . _getSelectedInterpreterPath ( args ) ;
74
74
expect ( setting ) . to . equal ( 'settingValue' ) ;
75
75
} ) ;
76
-
77
- test ( 'If `args[1]` is not a valid uri' , async ( ) => {
78
- const args = [ 'command' , '${input:some_input}' ] ;
79
- when ( interpreterService . getActiveInterpreter ( anything ( ) ) ) . thenCall ( ( arg ) => {
80
- assert . deepEqual ( arg , undefined ) ;
81
- return Promise . resolve ( { path : 'settingValue' } ) as unknown ;
82
- } ) ;
83
- const setting = await interpreterPathCommand . _getSelectedInterpreterPath ( args ) ;
84
- expect ( setting ) . to . equal ( 'settingValue' ) ;
85
- } ) ;
86
76
} ) ;
0 commit comments