@@ -94,21 +94,6 @@ suite('Python Path Settings Updater', () => {
94
94
await updater . updatePythonPath ( pythonPath ) ;
95
95
interpreterPathService . verifyAll ( ) ;
96
96
} ) ;
97
- test ( 'Python Path should be truncated for workspace-relative paths' , async ( ) => {
98
- const workspaceFolderPath = path . join ( 'user' , 'desktop' , 'development' ) ;
99
- const workspaceFolder = Uri . file ( workspaceFolderPath ) ;
100
- const pythonPath = Uri . file ( path . join ( workspaceFolderPath , 'env' , 'bin' , 'python' ) ) . fsPath ;
101
- const expectedPythonPath = path . join ( 'env' , 'bin' , 'python' ) ;
102
- interpreterPathService . setup ( ( i ) => i . inspect ( workspaceFolder ) ) . returns ( ( ) => ( { } ) ) ;
103
- interpreterPathService
104
- . setup ( ( i ) => i . update ( workspaceFolder , ConfigurationTarget . WorkspaceFolder , expectedPythonPath ) )
105
- . returns ( ( ) => Promise . resolve ( ) )
106
- . verifiable ( TypeMoq . Times . once ( ) ) ;
107
-
108
- const updater = updaterServiceFactory . getWorkspaceFolderPythonPathConfigurationService ( workspaceFolder ) ;
109
- await updater . updatePythonPath ( pythonPath ) ;
110
- interpreterPathService . verifyAll ( ) ;
111
- } ) ;
112
97
} ) ;
113
98
suite ( 'Workspace (multiroot scenario)' , ( ) => {
114
99
setup ( ( ) => setupMocks ( ) ) ;
@@ -142,23 +127,6 @@ suite('Python Path Settings Updater', () => {
142
127
const updater = updaterServiceFactory . getWorkspacePythonPathConfigurationService ( workspaceFolder ) ;
143
128
await updater . updatePythonPath ( pythonPath ) ;
144
129
145
- interpreterPathService . verifyAll ( ) ;
146
- } ) ;
147
- test ( 'Python Path should be truncated for workspace-relative paths' , async ( ) => {
148
- const workspaceFolderPath = path . join ( 'user' , 'desktop' , 'development' ) ;
149
- const workspaceFolder = Uri . file ( workspaceFolderPath ) ;
150
- const pythonPath = Uri . file ( path . join ( workspaceFolderPath , 'env' , 'bin' , 'python' ) ) . fsPath ;
151
- const expectedPythonPath = path . join ( 'env' , 'bin' , 'python' ) ;
152
-
153
- interpreterPathService . setup ( ( i ) => i . inspect ( workspaceFolder ) ) . returns ( ( ) => ( { } ) ) ;
154
- interpreterPathService
155
- . setup ( ( i ) => i . update ( workspaceFolder , ConfigurationTarget . Workspace , expectedPythonPath ) )
156
- . returns ( ( ) => Promise . resolve ( ) )
157
- . verifiable ( TypeMoq . Times . once ( ) ) ;
158
-
159
- const updater = updaterServiceFactory . getWorkspacePythonPathConfigurationService ( workspaceFolder ) ;
160
- await updater . updatePythonPath ( pythonPath ) ;
161
-
162
130
interpreterPathService . verifyAll ( ) ;
163
131
} ) ;
164
132
} ) ;
0 commit comments