Donald Stufft
95bcf8c5f6
Move all internal APIs to pip._internal
2017-08-31 14:53:00 -04:00
Pradyun S. Gedam
9923c1ad7e
Sort imports and minor Flake8 changes ( #4520 )
...
* Run isort on the codebase
Command: isort --recursive --skip __main__.py --skip _vendor -o pip._vendor -sd THIRDPARTY -m 5 -p pip -p tests ./pip ./tests
* 📰
2017-06-13 14:17:00 +02:00
Pradyun S. Gedam
1832569530
Sort all imports
2017-05-16 15:47:47 +05:30
Xavier Fernandez
5b7060a20d
Deprecate the _strip_postfix function ( #4174 )
...
It only happens for editable-non-file URLs and is an undocumented
behavior.
2017-02-13 10:02:20 +01:00
Xavier Fernandez
5055d05a9a
Fix always true assertion
2016-03-03 10:32:06 +01:00
Xavier Fernandez
9457300142
Fix tests when wheel is available in global site packages
...
Make sure we are installing via setuptools and not wheels so that we get
egg-info directories.
2015-12-16 00:12:18 +01:00
Matthias Bussonnier
cdb1dc7685
imp deprecated on 3.4
...
importing it prevent to debug other packages with `-W error` as the
deprecation warning will raise.
Though there is still imp imported from a few vendorized packages,
and for other purposes than cache_from_source.
2015-05-02 10:48:25 -07:00
Donald Stufft
a88bc0de73
Send log messages >= logging.WARNING to stderr
2015-04-06 23:11:16 -04:00
Matej Stuchlik
c5024dc851
Mark tests requiring Internet access
2015-01-15 00:53:15 +01:00
Donald Stufft
5f0692b40a
Fix for latest setuptools
2014-12-13 12:38:55 -05:00
Marcus Smith
9d01010672
fix false positive tests due to assert tuple syntax
2014-10-08 21:51:14 -07:00
Matthew Iversen
dcb0ee0702
Move backwardcompat package to compat module
2014-05-14 13:10:06 +10:00
Marcus Smith
ca55f9f8b1
remove unused imports
2014-03-29 09:54:05 -07:00
Marcus Smith
8d37e2abcf
turn on --user tests for pypy
2014-03-29 09:48:12 -07:00
Donald Stufft
5a76a47d3b
Fix code to handle the latest flake8
2014-03-26 18:24:19 -04: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
Marcus Smith
b42dcc6973
move --user uninstall tests to dedicated module
2013-11-29 17:15:50 -08:00
Marcus Smith
861023bc0d
uninstalling --user dists should leave global scripts alone
2013-11-29 17:08:43 -08: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
487925ea3f
Isolate the tests from the shared data directory
2013-08-27 06:49:35 -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
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
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
Marcus Smith
bea1f6ca2f
method call syntax error
2013-06-13 22:55:32 -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