Skip to content

Commit 4cf3644

Browse files
author
Kartik Raj
committed
Correct folder names
1 parent 0d1fdc7 commit 4cf3644

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

src/test/pythonEnvironments/common/environmentIdentifier.unit.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import * as externalDependencies from '../../../client/pythonEnvironments/common
1010
import { EnvironmentType } from '../../../client/pythonEnvironments/info';
1111
import { TEST_LAYOUT_ROOT } from './commonTestConstants';
1212

13-
suite('Environment Identifier', () => {
13+
suite('Pipenv utils Environment Identifier', () => {
1414
let getEnvVar: sinon.SinonStub;
1515
suite('Conda', () => {
1616
test('Conda layout with conda-meta and python binary in the same directory', async () => {
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Absolute path to \src\test\pythonEnvironments\common\envlayouts\pipenv\grandparent
1+
Absolute path to \src\test\pythonEnvironments\common\envlayouts\pipenv\project3

src/test/pythonEnvironments/discovery/locators/pipEnvHelper.unit.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ suite('Pipenv utils', () => {
2121

2222
test('Global pipenv environment is associated with a project whose Pipfile lies at 3 levels above the project', async () => {
2323
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);
3030
assert.equal(isRelated, true);
3131
});
3232
});

0 commit comments

Comments
 (0)