File: test_python_virtualenv.vader

package info (click to toggle)
vim-ale 3.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,408 kB
  • sloc: sh: 497; python: 311; perl: 31; makefile: 4; javascript: 1
file content (12 lines) | stat: -rw-r--r-- 329 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
Before:
  Save $VIRTUAL_ENV
  let $VIRTUAL_ENV = "/opt/example/"

After:
  Restore

Execute(ale#python#FindVirtualenv falls back to $VIRTUAL_ENV when no directories match):
  AssertEqual
  \  ale#python#FindVirtualenv(bufnr('%')),
  \  '/opt/example/',
  \  'Expected VIRTUAL_ENV environment variable to be used, but it was not'