@@ -22,8 +22,7 @@ suite('Virtualenvwrapper Locator Tests', () => {
2222 pathExistsStub = sinon . stub ( fileUtils , 'pathExists' ) ;
2323 getDefaultDirStub = sinon . stub ( virtualenvwrapperUtils , 'getDefaultVirtualenvwrapperDir' ) ;
2424
25- pathExistsStub . withArgs ( path . join ( homeDir , envDirectory ) ) . resolves ( true ) ;
26- pathExistsStub . resolves ( false ) ;
25+ pathExistsStub . resolves ( true ) ;
2726 } ) ;
2827
2928 teardown ( ( ) => {
@@ -32,7 +31,7 @@ suite('Virtualenvwrapper Locator Tests', () => {
3231 getDefaultDirStub . restore ( ) ;
3332 } ) ;
3433
35- test ( 'WORKON_HOME is not set, and the interpreter is is in a subfolder' , async ( ) => {
34+ test ( 'WORKON_HOME is not set, and the interpreter is in a subfolder of virtualenvwrapper ' , async ( ) => {
3635 const interpreter = path . join ( homeDir , envDirectory , 'bin' , 'python' ) ;
3736
3837 getEnvVariableStub . withArgs ( 'WORKON_HOME' ) . returns ( undefined ) ;
@@ -56,7 +55,6 @@ suite('Virtualenvwrapper Locator Tests', () => {
5655 const interpreter = path . join ( 'some' , 'path' , envDirectory , 'bin' , 'python' ) ;
5756
5857 getEnvVariableStub . withArgs ( 'WORKON_HOME' ) . returns ( workonHomeDirectory ) ;
59- pathExistsStub . withArgs ( path . join ( workonHomeDirectory , envDirectory ) ) . resolves ( false ) ;
6058
6159 assert . deepStrictEqual ( await isVirtualenvwrapperEnvironment ( interpreter ) , false ) ;
6260 } ) ;
0 commit comments