1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
Commit graph

355 commits

Author SHA1 Message Date
Pradyun Gedam
2ce98c1807
Remove an unused argument 2019-07-12 13:19:17 +05:30
Chris Hunt
39ac9ca351 Rename compatible functions in tests.lib.path.Path. 2019-07-02 18:48:44 -04:00
Chris Hunt
ec73d72fd3 Remove unused incompatible functions from tests.lib.Path. 2019-07-01 10:23:03 +02:00
Chris Jerdonek
449d268b5a
Merge pull request #6661 from cjerdonek/add-selection-prefs-class
Add a SelectionPreferences class
2019-06-30 00:52:15 -07:00
Chris Hunt
66e68273c8 Add assert in assert_paths_equal. 2019-06-29 21:07:50 -04:00
Chris Jerdonek
ae79b5bf5c Add a SelectionPreferences class. 2019-06-28 11:14:55 -07:00
Chris Jerdonek
8af3f21a57 Filter out yanked links earlier when allow_yanked=False. 2019-06-27 19:50:25 -07:00
Chris Jerdonek
cab7316e2b Change PackageFinder.create() to accept a SearchScope object. 2019-06-21 14:41:49 -07:00
Chris Jerdonek
210dab7470 Add make_test_finder() helper function. 2019-06-11 19:18:56 -07:00
Chris Jerdonek
b8d693c71e Add a TargetPython class. 2019-06-11 18:19:20 -07:00
Chris Jerdonek
53c5293517
Merge pull request #6474 from cjerdonek/logging-errors-during-tests
Don't allow logging errors during tests even if allow_stderr_error=True
2019-05-10 11:13:32 -04:00
Chris Jerdonek
0b8377d53f Move run_with_log_command() after run_stderr_with_prefix().
We do this to better parallel the test order in TestPipTestEnvironment,
since the tests using run_with_log_command() occur later.
2019-05-07 07:05:01 -04:00
Chris Jerdonek
8a9e36ee15 Change to never allow logging errors during tests. 2019-05-07 07:04:57 -04:00
Chris Jerdonek
46fc5ccf45 Add failing test. 2019-05-07 06:51:42 -04:00
Chris Jerdonek
0ea639d644 Remove url as an instance attribute of the VersionControl class. 2019-05-06 22:59:18 -04:00
Chris Jerdonek
bef5b2e6f3 Improve PipTestEnvironment to check for logging errors. 2019-05-06 14:55:16 -04:00
johnthagen
c8e9caa8a7 Add Subversion.get_vcs_version method (#6390)
Add Subversion.get_vcs_version method to return the version of the currently installed Subversion client.
2019-04-17 00:34:19 -07:00
Chris Jerdonek
66ae68122f Disallow two more argument combinations, and test. 2019-03-26 20:34:23 -07:00
Chris Jerdonek
ac18393df7 Make expect_stderr mean the weaker allow_stderr_warning. 2019-03-26 20:34:23 -07:00
Chris Jerdonek
9efd2933ab Remove logic for SSLContext warning on old versions of Python. 2019-03-26 20:34:19 -07:00
Chris Jerdonek
5b9065cf5a Make deprecated_python cause allow_stderr_warning not expect_stderr. 2019-03-26 20:32:49 -07:00
Chris Jerdonek
bb290e10f2 Address review comments, and add tests. 2019-03-20 02:08:37 -07:00
Chris Jerdonek
2e98d3975f Allow finer-grained testing of subprocess stderr. 2019-03-16 04:16:37 -07:00
Chris Jerdonek
1fdd7e26c5
Merge pull request #6139 from jelmer/bazaar-export-perf
Bazaar: Export directly from the remote branch.
2019-03-01 01:36:02 -08:00
Chris Jerdonek
6cdecce71d Fix an IndexError crash when a legacy build of a wheel fails. 2019-02-10 13:10:39 -08:00
Chris Jerdonek
57ec8bc5e0 Reset os.environ while preserving the original mapping. 2019-02-02 17:19:20 -08:00
Jelmer Vernooij
bb385e2dbb
Make sure that bzr is available when running under Travis. 2019-01-27 02:35:10 +00:00
Jon Dufresne
a06d846a1d Remove workaround for unsupported Pythons
subprocess.check_call() was added in Python 2.5.

https://docs.python.org/2/library/subprocess.html#subprocess.check_call
2019-01-15 19:44:05 -08:00
Xavier Fernandez
5e573df69c Add deprecate_python fixture to easily deprecate python versions
pip usually emits a warning and tests have to be adapted
2019-01-12 21:50:40 +01:00
Pradyun Gedam
5274d7544e
Remove workaround for #6057 2018-12-08 09:17:53 +05:30
Chris Jerdonek
36266b44b3
Merge pull request #6006 from cjerdonek/clean-up-some-git-test-code
Clean up some git test code.
2018-12-05 14:26:46 -08:00
Pradyun Gedam
f5ae9597c4
Disable Mercurial Tests on Travis 2018-12-02 16:45:53 +05:30
Chris Jerdonek
6e823fbc89 Add _git_commit() to tests.lib. 2018-11-12 09:49:00 -08:00
Chris Jerdonek
9b8db0d160 Move _vcs_add() to before its first use. 2018-11-12 00:13:32 -08:00
Chris Jerdonek
4b0d8a8eb6 Move a hard-coded relative path out of tests/lib. 2018-11-11 22:16:42 -08:00
Paul Moore
4ca38e0c38 Merge with master 2018-11-11 13:49:35 +00:00
Chris Jerdonek
2dbd34724a Test Git.get_remote_url(). 2018-11-10 01:35:22 -08:00
Benoit Pierre
744b8cf96e improve build environment
- check build requirements for conflicts
- better isolation (ignore system site packages)
- support 2 prefixes: a "normal" one, and an "overlay" one
  (with higher priority over "normal")
2018-10-29 23:17:51 +01:00
Chris Jerdonek
e75803774d Simplify some git-commit calls in the test code. 2018-10-24 18:27:30 -07:00
Pradyun Gedam
cc05433512
Merge pull request #5910 from cjerdonek/add-create-main-file
DRY up the test code that creates a module with a main() function.
2018-10-23 20:05:05 +05:30
Chris Jerdonek
ece4866086 DRY up the test code to create a module with a main() function. 2018-10-23 00:06:06 -07:00
Benoit Pierre
a4209aa0fb tests: add support for using venv for the virtual environment
Add a new testsuite option `--use-venv` to enable the use of `venv`
for creating a test virtual environment. The option is opt-in because
creating a `venv` environment does not work right when running under a
`virtualenv`; which is why `tox-venv` must be used in combination with
tox.
2018-10-21 21:43:32 +02:00
Benoit Pierre
add3801163 tests: rework tests virtual environment
- cleanup virtualenv creation code
- ensure all testing virtual environments use a recent version
  of setuptools / wheel, making it easier to switch to custom
  versions of those, as well as reducing network accesses
- reduce size of testing virtual environment, slightly speeding
  up the testsuite
2018-10-18 23:28:37 +02:00
Felix Yan
f3d82aa741 Fix a typo in tests/lib/configuration_helpers.py (#5858) 2018-10-09 20:28:50 +05:30
Paul Moore
78144e264a
Merge pull request #5692 from pfmoore/pep517
Refactorings and work in preparation for PEP 517
2018-08-11 08:35:36 +01:00
Pradyun Gedam
cc47adee9a
Change the import names as renamed 2018-08-05 14:24:18 +05:30
Paul Moore
873bae7b44 Initial tests for PEP 517 backend calls 2018-08-01 16:15:11 +01:00
Pradyun Gedam
21d9825efd
Rename basecommand -> base_command 2018-07-30 09:32:47 +05:30
Pradyun Gedam
8d45e0e647
Move basecommand to pip._internal.cli 2018-07-29 18:26:28 +05:30
Benoit Pierre
06fb565f0c tests: drop package4 test data
No need for a wheel of `simple` now that build dependencies support source installs.
2018-06-26 10:40:23 +02:00
Kexuan Sun
14fe337bcf Improve autocompletion function on file name completion (#5125) 2018-06-21 22:59:31 +05:30
Benoit Pierre
ca4e2ad6ad improve handling of PEP 518 build requirements
Offload more work to the underlying pip command used to install the
build requirements, so there's no need to duplicate code to handle
environment markers/extras. This is done by setting the correct options
from the finder passed in argument to `_install_build_reqs`.
2018-05-18 23:45:55 +02:00
Donald Stufft
90b3db476f Drop support for Python 3.3 2018-05-17 13:34:48 -04:00
Paul Moore
1bdbd6ccea Testing for pip version didn't cater for beta releases 2018-03-31 13:02:05 +01:00
luz.paz
209b0c6c10 Misc. trivial typos
Found via `codespell -q 3`
2018-03-27 06:51:44 -04:00
Anthony Sottile
e21e2d3f8f Upgrade syntax in ./tests
Changes were automated via https://github.com/asottile/pyupgrade

See #4921
2017-12-14 21:59:41 -08:00
Benoit Pierre
961737ab98 Fix integration tests on Windows (#4769) 2017-10-06 20:51:42 +01:00
Benoit Pierre
e792c48ac8 tests: speedup testsuite
Speedup virtualenv creation: create one (per session) relocatable
virtual environment, and then just make a copy of the resulting tree
when a new virtualenv is needed.
2017-09-02 02:19:55 +02:00
Benoit Pierre
3dd4a446f7 tests: fix virtualenv support when using PyPy 3 2017-09-02 02:18:33 +02:00
Donald Stufft
95bcf8c5f6 Move all internal APIs to pip._internal 2017-08-31 14:53:00 -04:00
Pradyun S. Gedam
841f5dfb5c Add support for YAML based test files (#4637) 2017-08-07 12:03:43 -04:00
Pradyun S. Gedam
32c8f42729 Add a new create_file helper and use it 2017-06-14 10:13:04 +05:30
Pradyun S. Gedam
4e47f04fe5 Sort imports 2017-06-13 23:41:31 +05:30
Pradyun S. Gedam
3bb4ddc332
Change file_ to fname 2017-06-01 11:38:20 +05:30
Pradyun S. Gedam
19fd2db327 Close the open file-descriptor 2017-05-20 12:56:13 +05:30
Pradyun S. Gedam
bd850c0798 Improve tests 2017-05-20 12:56:13 +05:30
Pradyun S. Gedam
f6a7f4b7c4 🎨 2017-05-20 12:56:13 +05:30
Pradyun S. Gedam
3efb452a2a Use an enum-like attribute to refer to configuration sources 2017-05-20 12:56:13 +05:30
Pradyun S. Gedam
3b6c3d152d I forgot file is a builtin in Python 2 2017-05-20 12:56:13 +05:30
Pradyun S. Gedam
f9990605dc Add non-working test for patched configuration file 2017-05-20 12:56:13 +05:30
Pradyun S. Gedam
9063899e7d Move mixin to a helper module 2017-05-20 12:56:13 +05:30
Pradyun S. Gedam
9a9ef8a4de Make options tests work 2017-05-20 12:55:31 +05:30
Pradyun S. Gedam
1832569530 Sort all imports 2017-05-16 15:47:47 +05:30
Alex Gaynor
098da57eb6 fix 2017-03-24 14:43:05 -04:00
Alex Gaynor
590d37dfaf This is dead as wel 2017-03-24 14:24:12 -04:00
Alex Gaynor
806b4c5b06 Removed in another place 2017-03-24 14:22:03 -04:00
Alex Gaynor
d11b3877e9 Remove use of legacy u() syntax 2017-03-24 14:21:22 -04:00
Donald Stufft
6b54145783 Deprecate support for Python 3.3 2017-03-22 19:22:56 -04:00
Donald Stufft
f50bd8a9ea Don't assume versions are single digit 2017-03-20 11:37:15 -04:00
Donald Stufft
59cb562d59 Fix up some bookkeeping 2017-03-18 14:52:14 -04:00
Xavier Fernandez
a12f2f493c Reimplement pip check tests without network
Add small test for complex dependency names
2016-11-13 22:51:15 +01:00
Donald Stufft
cae136fc8e Update to deal with latest version of virtualenv 2016-01-19 12:23:52 -05:00
Alex Gaynor
e86b0af72e fix for the tests 2016-01-01 21:46:29 -05:00
Stéphane Bidoul
7d7b50a990 add freeze test with git subdirectory and srcdir 2015-12-04 14:40:24 +01:00
Stéphane Bidoul
b8549e3629 refactor test vcs package creation
factor out the vcs add/commit part
2015-12-04 14:40:24 +01:00
Erik Rose
1e41f01823 Add checks against requirements-file-dwelling hashes for most kinds of packages. Close #1175.
* Add --require-hashes option. This is handy in deployment scripts to force application authors to hash their requirements. It is also a convenient way to get pip to show computed hashes for a virgin, unhashed requirements file. Eventually, additions to `pip freeze` should fill a superset of this use case.
  * In --require-hashes mode, at least one hash is required to match for each requirement.
  * Option-based requirements (--sha256=...) turn on --require-hashes mode implicitly.
  * Internet-derived URL-based hashes are "necessary but not sufficient": they do not satisfy --require-hashes mode when they match, but they are still used to guard against transmission errors.
  * Other URL-based requirements (#md5=...) are treated just like flag-based ones, except they don't turn on --require-hashes.
* Complain informatively, with the most devastating errors first so you don't chase your tail all day only to run up against a brick wall at the end. This also means we don't complain that a hash is missing, only for the user to find, after fixing it, that we have no idea how to even compute a hash for that type of requirement.
  * Complain about unpinned requirements when hash-checking mode is on, lest they cause the user surprise later.
  * Complain about missing hashes.
  * Complain about requirement types we don't know how to hash (like VCS ones and local dirs).
* Have InstallRequirement keep its original Link around (original_link) so we can differentiate between URL hashes from requirements files and ones downloaded from the (untrustworthy) internet.
* Remove test_download_hashes, which is obsolete. Similar coverage is provided in test_utils.TestHashes and the various hash cases in test_req.py.
2015-09-24 22:16:00 -04:00
Xavier Fernandez
0d022c5ba0 fix PipTestEnvironment to use Path object
needed since
63cb4c725d
2015-09-22 10:48:23 +02:00
Mathew Jennings
417f79d8b8 Add pip download command and deprecate pip install --download.
`pip download` has the same functionality as `pip install --download`,
and the behavior of `pip install --download` is preserved with a deprecation
warning.  `pip install --download` will be removed in pip version 10.
2015-09-13 17:41:00 -04:00
Donald Stufft
28e94c7a2e Don't install wheel inside our virtual environment 2015-05-21 23:49:28 -04:00
Robert Collins
0692704c89 Fix VirtualEnvironment repr for Python2.6.
(cherry picked from commit b424e40d375851beea683f7dcdbe5134216a09b0)
2015-04-07 08:00:49 -04:00
Marc Abramowitz
f6dda5aa80 Less network deps in test_install 2015-03-19 03:54:09 -07:00
Donald Stufft
c06f84a9d7 Merge pull request #2557 from msabramo/test_venv_dont_compile_pip
tests: install pip w/ --no-compile
2015-03-18 22:36:23 -04:00
Marc Abramowitz
fd29593e46 Better traceback on venv pip install fail
Instead of:

    tests/conftest.py:146: in virtualenv
        pip_source_dir=pip_src,
    tests/lib/venv.py:45: in create
        obj._create(clear=clear)
    tests/lib/venv.py:68: in _create
        raise Exception(p.stderr)
    E   Exception: None

We get the more informative:

    tests/conftest.py:146: in virtualenv
        pip_source_dir=pip_src,
    tests/lib/venv.py:45: in create
        obj._create(clear=clear)
    tests/lib/venv.py:71: in _create
        output=p.stdout,
    E   CalledProcessError: Command '[Path(u'/private/var/folders/gw/w0clrs515zx9x_55zgtpv4mm0000gp/T/pytest-675/test_freeze_basic0/workspace/venv/bin/python'), 'setup.py', 'installxx']' returned non-zero exit status 1
2015-03-18 07:35:22 -07:00
Marc Abramowitz
e9a7fb4e49 tests: install pip w/ --no-compile
For me, this speeds up `py.test tests/functional/test_freeze.py` from 62
seconds to 54 seconds (about a 13% speedup).
2015-03-17 10:23:40 -07:00
Marc Abramowitz
987ce2b3b1 test_install: Less deps on external stuff
so that tests are faster and less likely to fail intermittently,
especially on Travis CI, where the networking is flakey.
2015-03-16 17:50:16 -07:00
Cory Benfield
06ea5fc05d Create pyversion_tuple 2015-03-15 15:32:47 +00:00
Cory Benfield
a792ad3a7a Expect urllib3 platform warnings. 2015-03-15 14:56:08 +00:00
Paul Moore
5a32a4d34a Merge pull request #2525 from msabramo/test_freeze_mercurial_clone_remove_dep_on_bitbucket
test_freeze_mercurial_clone: no dep on bitbucket
2015-03-12 11:03:42 +00:00
Marc Abramowitz
415fca8bf7 test_freeze_mercurial_clone: no dep on bitbucket 2015-03-11 22:29:58 -07:00
Marc Abramowitz
5622755753 _create_test_package use path_to_url for svn
because `path_to_url` is smarter than the ad-hoc code I hacked together.
In particular, it works on Windows, whereas my code didn't. This
prevents the following error on Windows:

    Script result: svn import c:\users\admini~1\appdata\local\temp\pytest-27\test_freeze_svn0\workspace\scratch\version_pkg file://c:\users\admini~1\appdata\local\temp\pytest-27\test_freeze_svn0\workspace\scratch\pip-test-package-repo\trunk -m Initial import of pip-test-package
      return code: 1
    -- stderr: --------------------
    svn: E170000: Illegal repository URL 'file://c:%5cusers%5cadmini~1%5cappdata%5clocal%5ctemp%5cpytest-27%5ctest_freeze_svn0%5cworkspace%5cscratch%5cpip-test-package-repo%5ctrunk'
2015-03-11 19:02:19 -07:00
Marc Abramowitz
7f5566fea4 Make test_freeze_bazaar_clone not depend on bazaar.launchpad.net 2015-03-11 15:07:35 -07:00
Marc Abramowitz
f4ee579304 test_freeze_svn: No dep on bitbucket
Instead of using local_checkout, which downloads a 204 KB dump file from
http://bitbucket.org/hltbra/pip-initools-dump/raw/8b55c908a320/INITools_modified.dump,
use `svnadmin create` and `svn import` to create an svn repo on the fly.
2015-03-11 10:26:35 -07:00
Donald Stufft
0bc8aa5622 Style fixes for the latest flake8 2015-02-24 07:46:10 -05:00
Bussonnier Matthias
0582a91e62 Do not shadow submodules
using object that have the same name as submodules as the weird effect
of makeing `import pip.commands.<something> as <anothername>` fail with
a key error. This fixes it by renamin commands as command_dict and fixin
a few imports to accomodate.

Related to #2149
2014-12-12 16:06:04 +01:00
Donald Stufft
3b918b1461 Use a real install instead of develop 2014-11-20 07:53:57 -05:00
Donald Stufft
ec91d8e421 Move from pip.compat.* to six.moves.* for urllib related stuff 2014-09-11 18:40:45 -04:00
Donald Stufft
767d11e49c Switch to using the stdlib logger instead of pip.log 2014-09-10 09:36:09 -04:00
Donald Stufft
bcead5206b Hide output when installing pip 2014-07-01 00:20:16 -04:00
Matthew Iversen
dcb0ee0702 Move backwardcompat package to compat module 2014-05-14 13:10:06 +10:00
Marcus Smith
b0b05737a9 Merge pull request #1787 from qwcode/wheel_editables
build wheels for dependencies of editables
2014-05-09 15:00:50 -07:00
Donald Stufft
97d8bee705 Isolate our tests from the running user's configuration 2014-05-07 16:17:07 -04:00
Marcus Smith
12034176a1 build wheels for dependencies of editables 2014-05-03 10:12:57 -07:00
Donald Stufft
e3873b1be8 Merge pull request #1704 from jamezpolley/develop
If at first you can't stat the index file, try again
2014-05-03 07:46:29 -04:00
James Polley
58097b64c4 Add tests (and data required for tests) for new code that enables retry
if we can't stat a file while using a file:/// index-url.
2014-04-30 12:03:55 +10:00
Paul Moore
92c3a673fd Fix tests on Windows, where Path objects were changing to strings mysteriously... 2014-04-28 15:38:39 +01:00
Matthew Iversen
d1a7130246 Fix compatibility with wheel 0.23.0
wheel now only produces the major python version for the tag of pure
distributions, so expect that instead.
2014-04-03 10:49:27 +11:00
Marcus Smith
2264dc4398 lib path fixes for pypy tests 2014-03-29 20:17:10 -07:00
Donald Stufft
5a76a47d3b Fix code to handle the latest flake8 2014-03-26 18:24:19 -04:00
Matthew Iversen
4008c0a111 Fix tests for subdirectory install
- make assert_install test clearer
- Add option allowing for testing install from an editable subdirectory
2014-03-09 05:33:05 +11:00
Donald Stufft
95035fc5c4 Turn on everything in flake8
flake8 ignores some errors by default, these ignored by defaults
change sometimes. This will make things stabler by selecting
everything.
2014-02-24 16:52:23 -05:00
Donald Stufft
9f027337a8 Use Flake8 on the test of pip's Python files 2014-01-28 19:47:58 -05:00
Marcus Smith
a7c522da97 fix references to req methods/classes after refactor 2014-01-12 10:05:11 -08:00
Michael Williamson
99a4f6f4e1 Add symlinks=True to copytree invocation so that tests pass in Python 3 2013-11-10 00:05:13 +00:00
Paul Moore
ba97b0c030 Fix tests using virtualenv on Windows.
Do not hard code bin as the location of the executables, as this is not
correct on Windows.
2013-10-24 21:26:38 +01:00
Paul Nasrat
951ef7438c Merge remote-tracking branch 'niedbalski/develop' into subdirectory-editable
Conflicts:
	CHANGES.txt
	tests/functional/test_install_reqs.py
	tests/lib/__init__.py
	tests/unit/test_req.py

Additional work - refactored tests to new style.
2013-09-27 14:42:05 -04:00
Marcus Smith
f6d242aeea merge from 1.4.X 2013-09-01 13:15:45 -07:00
Marcus Smith
1afdc665ae don't override distutils scripts location using pip's legacy logic 2013-08-31 15:28:44 -07:00
Donald Stufft
6a343fe460 Properly raise an error when it happens 2013-08-28 05:33:38 -04:00
Donald Stufft
3095571d8f Copy pip into the per test temporary location as well
Previously pip was always installed directly from the source tree
however this causes concurrency issues so it is now copied into
the temporary directory and installed from there.
2013-08-27 06:49:40 -04:00
Donald Stufft
5fece08556 Hide assert_raises_regexp in the traceback 2013-08-27 06:49:40 -04:00
Donald Stufft
fe60a1d5cf Use a constant for the source directory 2013-08-27 06:49:40 -04:00
Donald Stufft
1bd8dd99f8 Determine the src directory automatically 2013-08-27 06:49:40 -04:00
Donald Stufft
bacf3a0091 Wrap the test data in a helper that will copy to the tmpdir
This is needed because the various activities that exericsing the
tests do will cause files to change inside this data directory. If
we do not make it test specific then we run into concurrency issues.
2013-08-27 06:47:26 -04:00
Donald Stufft
c3f7a9cc3d Hide assert_all_changes from the traceback 2013-08-27 06:47:25 -04:00
Donald Stufft
f9a3b97b41 Explicitly pass around a directory for tests.lib.local_repos 2013-08-27 06:47:25 -04:00
Donald Stufft
0c42245f21 Replace explicit calls to reset_env() with the script fixture 2013-08-27 06:47:23 -04:00
Donald Stufft
17cfdc5b62 Refactor tests.lib into classes that can be used to modify state 2013-08-27 06:41:55 -04:00
Donald Stufft
daa50ff459 Don't write bytecode when running tests
Writing bytecode can mess up the detection of updated files and
directories
2013-08-22 02:44:21 -04:00
Donald Stufft
41bf2b8046 Revert "Use an explicit keyword"
This reverts commit 47faefcd8e.
2013-08-22 01:54:29 -04:00
Donald Stufft
555322b432 Note that things break horribly without a temp path 2013-08-22 01:51:14 -04:00
Donald Stufft
319a73cb0a Fix the comment to be accurate 2013-08-22 01:50:10 -04:00
Donald Stufft
47faefcd8e Use an explicit keyword 2013-08-22 01:48:58 -04:00
Donald Stufft
781fe907de We don't need to clear the virtualenv, it's a brand new directory 2013-08-22 01:44:45 -04:00
Donald Stufft
9894c8baac Refactor tests.lib
* Move virtualenv creation out of TestPipEnvironment
* Remove global state and force explicit use of TestPipEnvironment
  instances
* Remove "backup" virtualenv copying and instead create new
  virtual environments each time.
* Remove the monkeypatched "PyPICache" functionality
* Remove things that were not being used anymore and were dead
  weight
* Remove sitecustomize support which was primarily used to
  monkeypatch the "PyPICache" but was used in one or two other
  tests.
2013-08-21 22:40:16 -04:00
Donald Stufft
30934fede2 Refactor tests.lib.path a bit
* Add a .join() method for a more explicit joining than /
* Return values where possible
* Make glob an iterator
* Remove checks for versions of Python we don't support
* Add a write() function to make it simple to write some text
  into a file
* Add a touch() function to make it simple to ensure a file
  exists
2013-08-21 22:40:09 -04:00
Donald Stufft
da0bc4b1d1 Switch to using py.test as the test runner instead of nose
* Better output with the bare asserts we use throughout the tests
* Function fixtures are pretty nice, especially as a way to
  start a background server or create an isolated virtualenv
2013-08-21 10:19:58 -04:00
Jorge Niedbalski R
ebc40a16bf Merge from upstream project 2013-08-12 11:20:15 -07:00
Marcus Smith
d3cbb3f606 fix up the bundle support 2013-08-07 00:13:47 -07:00
Marcus Smith
3e8924a7ec setuptools upgrade tests 2013-07-27 00:58:56 -07:00
Jorge Niedbalski
abf27b5bd2 [tests] added test for subdirectory editable options 2013-07-24 12:25:35 -03:00
Marcus Smith
fe2a254c7e patch for our tests cache for windows/py2 2013-07-12 16:04:50 -07:00
Marcus Smith
813ab9da2e user site fix for windows tests; was broke recently when the 2 TestPipEnvironment classes were consolidated into one 2013-07-09 23:55:23 -07:00
Marcus Smith
ff1a79381a test changes due to virtualenv not using distribute 2013-06-13 22:43:26 -07:00
Marcus Smith
28298c413d more functional/unit tests restructure 2013-05-29 13:41:13 -07:00
Marcus Smith
2e2ce0f4e9 break up tests dir into data, unit tests, and functional tests 2013-05-29 13:41:12 -07:00