@@ -22,8 +22,7 @@ suite('Virtualenvwrapper Locator Tests', () => {
22
22
pathExistsStub = sinon . stub ( fileUtils , 'pathExists' ) ;
23
23
getDefaultDirStub = sinon . stub ( virtualenvwrapperUtils , 'getDefaultVirtualenvwrapperDir' ) ;
24
24
25
- pathExistsStub . withArgs ( path . join ( homeDir , envDirectory ) ) . resolves ( true ) ;
26
- pathExistsStub . resolves ( false ) ;
25
+ pathExistsStub . resolves ( true ) ;
27
26
} ) ;
28
27
29
28
teardown ( ( ) => {
@@ -32,7 +31,7 @@ suite('Virtualenvwrapper Locator Tests', () => {
32
31
getDefaultDirStub . restore ( ) ;
33
32
} ) ;
34
33
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 ( ) => {
36
35
const interpreter = path . join ( homeDir , envDirectory , 'bin' , 'python' ) ;
37
36
38
37
getEnvVariableStub . withArgs ( 'WORKON_HOME' ) . returns ( undefined ) ;
@@ -56,7 +55,6 @@ suite('Virtualenvwrapper Locator Tests', () => {
56
55
const interpreter = path . join ( 'some' , 'path' , envDirectory , 'bin' , 'python' ) ;
57
56
58
57
getEnvVariableStub . withArgs ( 'WORKON_HOME' ) . returns ( workonHomeDirectory ) ;
59
- pathExistsStub . withArgs ( path . join ( workonHomeDirectory , envDirectory ) ) . resolves ( false ) ;
60
58
61
59
assert . deepStrictEqual ( await isVirtualenvwrapperEnvironment ( interpreter ) , false ) ;
62
60
} ) ;
0 commit comments