summaryrefslogtreecommitdiff
path: root/tests/test_virtualenv.py
Commit message (Collapse)AuthorAgeFilesLines
* Set VIRTUAL_ENV enviroment variable in activate_this.py (#1057)nonylene2018-12-241-3/+4
| | | | | | | | | | | | | | | | * Set VIRTUAL_ENV enviroment in activate_this.py VIRTUAL_ENV was not set in activate_this.py, while set in other activate scripts. * Add tests for activate_this.py * Fix syntax in test_activate_this.py * fix * more robust testing for the activate this * fix Jython support of activate this
* code improvements (#1262)Bernát Gábor2018-12-231-4/+4
| | | | | | | - global variables capital - pep-8 compliant variable names - some pycharm specific ignores - fixed some typos - prefer format over %
* Shell fixes (#1258)Bernát Gábor2018-12-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Always store _OLD_VIRTUAL_PATH in a sh compat format When using a subshell from fish while within a virtualenv the _OLD_VIRTUAL_PATH variable ends up in fish format and not the format of the subshell. This breaks the first step of the activate script where it attepts to deactivate the previous environment. This patch will handle conversion to and from sh and fish formats within the activate.fish script * Add test and update to new delimiter * Fix lint Remove line that didn't lint as we don't need it. * Rebuild virtualenv.py * Add changelog * fix_lint * Try to add fish to build env * Use less fish (only when running py tests) * remove code duplication for activation testers * Consolidate activation testing - add tests for csh, bash - rework bash, csh tests - remove powershell singing - powershell pydoc support * file and with extension * universal newline * Add debug env var, and normalize on Linux to via realpath (Jython failure) * switch to bat * fix xonosh * fix xonsh further * fix jython * fix lint * enable pytest debug
* Dereference symlinks more thoroughly in copyfile (#956)Adam Sampson2018-12-181-0/+28
| | | | | | | | | copyfile was broken for symlinks that pointed to relative paths, and for symlinks that pointed to further symlinks (which meant that virtualenv failed to work in some cases when the Python executable it found was a symlink, e.g. when Python had been installed using stow or homebrew; issue #268). Make it follow symlinks until it finds an actual file to copy.
* update testing notes, and test space path supportJurko Gospodnetić2018-12-161-0/+17
| | | | | - added docs on running the internal test suite using `tox` - added a test for creating a Python environment in a path with spaces - added a test for creating a Python environment while locating the needed wheel sources in a path with spaces
* Add test for missing pip/certifi's cacert.pemMiro Hrončok2018-12-061-0/+44
| | | | | | | | See https://github.com/pypa/pip/blob/master/src/pip/_vendor/README.rst It is acceptable to remove the pip/_vendor/requests/cacert.pem file from pip Virtualenv should not error on that
* made lib64 symlink relative again (#1249)Wouter De Borger2018-12-031-0/+28
| | | fixes #1248
* Jython to CIBernat Gabor2018-10-301-1/+5
|
* fix flake8 errorsBernat Gabor2018-10-251-3/+5
|
* paint it blackBernat Gabor2018-10-251-148/+135
|
* test `get_installed_pythons()` on and off Windows platformJurko Gospodnetić2018-10-251-1/+143
|
* test resolve_interpreter() with registered python installationsJurko Gospodnetić2018-10-251-0/+29
|
* touch up & improve `resolve_interpreter()` testsJurko Gospodnetić2018-10-251-14/+15
| | | | | | | | | - tests no longer permanently modify the `virtualenv` module under test (`virtualenv.is_executable` changes were leaking from some tests) - tests now check that `get_installed_python()` results unrelated to the given version tag do not affect the result - simple patch function's return values now given in `@patch` decorators to make the test code more compact
* Fix some pep8 styleMatthew Iversen2016-08-051-5/+7
|
* Fix virtualenv tests on WindowsMatt Iversen2015-10-201-18/+14
|
* skip test on PyPyDonald Stufft2015-04-071-0/+4
|
* 4 changes to `test_always_copy_option`:Marcus Smith2013-12-051-5/+4
| | | | | | | 1) let it run for windows; should be harmless 2) confirm files and dirs are not links 3) create the tmp venvs in a *new* directory 4) if a symlink is found, report what it's linked to
* Add a unit test for --always-copy optionVladimir Dmitriev2013-12-051-0/+17
|
* Fix test for relocatable scriptsPaul Moore2013-03-081-1/+1
|
* 64bit test in site.py using sys.maxsize/maxint that works on py25Marcus Smith2013-02-051-12/+0
|
* 64bit test that works for py25 as well.Marcus Smith2013-01-281-0/+12
|
* windows test fixesMarcus Smith2013-01-221-8/+11
|
* Fix typos in test namesJonathan Hitchcock2012-11-151-2/+2
|
* Test that symlinks are properly created in bin_dirJonathan Hitchcock2012-11-151-0/+26
|
* Merge branch 'fix-update-defaults' of https://github.com/schmir/virtualenv ↵Jannis Leidel2012-09-011-0/+25
|\ | | | | | | | | | | | | into schmir-fix-update-defaults Conflicts: tests/test_virtualenv.py
| * fix update_defaults for options with 'store_false' actionRalf Schmitt2012-07-171-0/+25
| | | | | | | | | | | | | | | | these need to revert the logic, otherwise calling virtualenv with VIRTUALENV_NO_SITE_PACKAGES=1 set, will create a virtualenv *with* site packages. also adds a test
* | Fix --relocatable when script uses future statements.Branden Rolston2012-08-071-0/+19
|/
* Fix failing version test that was checking for a particular hard-codedMarc Abramowitz2012-05-011-1/+1
| | | | version string.
* Bumped version up a notch.Jannis Leidel2011-11-301-1/+1
|
* Bumped version to 1.6.4 and updated changelog.Jannis Leidel2011-07-211-1/+1
|
* Bumped version to 1.6.3.Jannis Leidel2011-07-161-1/+1
|
* Bumped version to 1.6.2.Jannis Leidel2011-07-161-1/+1
|
* Bumped version for good.Jannis Leidel2011-05-011-1/+1
|
* True is not a typical return value for abspath(); and mocking abspath() is ↵Carl Meyer2011-04-211-12/+3
| | | | not actually needed here.
* Cleanup trailing whitespace, unused imports and variables.Carl Meyer2011-04-211-6/+4
|
* No need to call mock.start() and mock.stop() when using the @patch decorator.Carl Meyer2011-04-211-16/+2
|
* Prevent traceback with non-exec interpreterPaul Nasrat2011-04-211-0/+75
Fixes #121 Add tests for virtualenv with nose and mock Add helper method to virtualenv for is_executable Raise SystemExit rather than sys.exit directly Tested on 2.4.4, 2.7.1 and 3.2