Skip to content

Windows unittest for virtualenvwrapper identifier is failing #14011

Closed
@karthiknadig

Description

@karthiknadig
  1) Environment Identifier
       Virtualenvwrapper
         WORKON_HOME is set to its default value %USERPROFILE%\Envs on Windows:

      AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected

+ 'Unknown'
- 'VirtualEnvWrapper'
      + expected - actual

      -Unknown
      +VirtualEnvWrapper
      
      at Context.<anonymous> (src\test\pythonEnvironments\common\environmentIdentifier.unit.test.ts:153:20)

  2) Environment Identifier
       Virtualenvwrapper
         WORKON_HOME is set to a custom value:

      AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected

+ 'Unknown'
- 'VirtualEnvWrapper'
      + expected - actual

      -Unknown
      +VirtualEnvWrapper
      
      at Context.<anonymous> (src\test\pythonEnvironments\common\environmentIdentifier.unit.test.ts:161:20)

  3) Virtualenvwrapper Locator Tests
       WORKON_HOME is not set, and the interpreter is is in a subfolder:

      AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:

  getDefaultDirStub.restore()

      + expected - actual

      -false
      +true
      
      at Context.<anonymous> (src\test\pythonEnvironments\discovery\locators\virtualenvwrapperLocator.unit.test.ts:32:16)

  4) Virtualenvwrapper Locator Tests
       WORKON_HOME is set to a custom value, and the interpreter is is in a subfolder:

      AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:

  getDefaultDirStub.returns(homeDir)

      + expected - actual

      -false
      +true
      
      at Context.<anonymous> (src\test\pythonEnvironments\discovery\locators\virtualenvwrapperLocator.unit.test.ts:39:16)

Metadata

Metadata

Assignees

Labels

area-internalLabel for non-user facing issuesbugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions