@@ -21,12 +21,12 @@ suite('Pipenv utils', () => {
21
21
22
22
test ( 'Global pipenv environment is associated with a project whose Pipfile lies at 3 levels above the project' , async ( ) => {
23
23
getEnvVar . withArgs ( 'PIPENV_MAX_DEPTH' ) . returns ( '5' ) ;
24
- const expectedDotProjectFile = path . join ( TEST_LAYOUT_ROOT , 'pipenv' , 'globalEnvironments' , 'grandparent -2s1eXEJ2' , '.project' ) ;
25
- const grandParentProject = path . join ( TEST_LAYOUT_ROOT , 'pipenv' , 'grandparent ' ) ;
26
- readFile . withArgs ( expectedDotProjectFile ) . resolves ( grandParentProject ) ;
27
- const interpreterPath : string = path . join ( TEST_LAYOUT_ROOT , 'pipenv' , 'globalEnvironments' , 'grandparent -2s1eXEJ2' , 'Scripts' , 'python.exe' ) ;
28
- const project = path . join ( grandParentProject , 'parent' , 'child' , 'project3 ' ) ;
29
- const isRelated = await isPipenvEnvironmentRelatedToFolder ( interpreterPath , project ) ;
24
+ const expectedDotProjectFile = path . join ( TEST_LAYOUT_ROOT , 'pipenv' , 'globalEnvironments' , 'project3 -2s1eXEJ2' , '.project' ) ;
25
+ const project = path . join ( TEST_LAYOUT_ROOT , 'pipenv' , 'project3 ' ) ;
26
+ readFile . withArgs ( expectedDotProjectFile ) . resolves ( project ) ;
27
+ const interpreterPath : string = path . join ( TEST_LAYOUT_ROOT , 'pipenv' , 'globalEnvironments' , 'project3 -2s1eXEJ2' , 'Scripts' , 'python.exe' ) ;
28
+ const folder = path . join ( project , 'parent' , 'child' , 'folder ' ) ;
29
+ const isRelated = await isPipenvEnvironmentRelatedToFolder ( interpreterPath , folder ) ;
30
30
assert . equal ( isRelated , true ) ;
31
31
} ) ;
32
32
} ) ;
0 commit comments