Dave Abrahams
17bdab0f1c
Adusted a few assertions pending a rewrite of testing infrastructure
2010-04-29 10:28:59 -04:00
Dave Abrahams
2edbb3f0b7
purged last use of base_path
2010-04-29 10:10:09 -04:00
Dave Abrahams
fd474f6846
Need to forward __str__ explicitly because str(result) is used in many tests
2010-04-29 10:04:49 -04:00
Dave Abrahams
cf23282488
Various fixes to the portable test code that I missed the last time around
2010-04-29 08:36:58 -04:00
Dave Abrahams
46c7d66aaf
Various fixes to implementation and uses of assert_installed.
...
Factored out assert_installed() to handle common post-installation checks
2010-04-28 16:55:10 -04:00
Dave Abrahams
55fc4610be
Testing sanity checks (e.g. test_correct_pip_version) now pass on all target platforms.
2010-04-28 11:41:55 -04:00
Dave Abrahams
e9bbd2a2a6
Added normcase support and choose base class appropriately to
...
os.path's notion of unicode support
2010-04-24 03:18:12 -04:00
Dave Abrahams
75e399f56c
calculate site-packages location portably
...
Uninstall virtualenv's pip in a way that works on Windows, i.e. not
using the executable that's being uninstalled and not using the code
that comes with virtualenv, which is broken.
Add '-' to Path for relative path calculation
Silence virtualenv preparation
Encourage earlier GC of the last TestPipEnvironment, which was
happening too late
2010-04-24 03:13:54 -04:00
Dave Abrahams
b32d6f4798
Use portable path manipulations for Windows portability
2010-04-24 03:06:42 -04:00
Dave Abrahams
bf91cac1ad
still some failure in test_freeze
2010-05-15 05:51:08 -06:00
Francesco
bfc40f08de
All test_upgrade test pass
2010-04-15 23:54:36 +02:00
Francesco
016019bfc0
6/8 tests pass, still two failures
2010-04-15 01:33:32 +02:00
Francesco
461b64965a
fix issue 1 http://github.com/ryppl/pip/issues#issue/1
2010-04-15 00:00:01 +02:00
Francesco
9cce7145e4
test requirements pass (fixed the wildcard match, lib/python ->
...
env/lib/python)
2010-04-14 00:24:22 +02:00
Francesco
cf1077371e
freeze git clone test pass (output didn't exactly match)
2010-04-13 22:49:08 +02:00
Francesco
9ed09e69da
removed lib_py, use env instead. download test pass
2010-04-13 01:40:56 +02:00
Francesco
d4b98294ee
bundle creation test pass
2010-04-13 01:20:02 +02:00
Francesco
30dfb77ac9
bazaar test passes - all test pass
2010-04-13 00:34:38 +02:00
Francesco
c2f80a9b20
clone from mercurial pass
2010-04-13 00:23:04 +02:00
Francesco
93dc28129d
git test pass
2010-04-13 00:17:52 +02:00
Dave Abrahams
a4d0abbeb9
Do all testing in temp directories so testing needn't modify the source tree. This breaks most tests until we update them.
2010-04-27 11:35:48 -04:00
Dave Abrahams
70914986ec
virtualenv_bin_dir is obsolete
2010-04-26 03:50:02 -04:00
Dave Abrahams
4988214ace
Added path.py from http://github.com/azizk/dil to make everything else
...
smoother
I had written something like this myself recently, only it was not
nearly as good, and besides, I can't find it anymore :-)
2010-04-12 15:54:37 -04:00
Dave Abrahams
8aee621d3f
Introduce TestPipEnvironment as part of doing windows portability
2010-04-26 04:18:52 -04:00
Dave Abrahams
967a2180b8
Replaces Ian's fix for #98 with mine; all part of getting a clean commit history
...
Make sure tests can find pip's sources.
Fixes #98 (http://bitbucket.org/ianb/pip/issue/98 )
2010-04-26 02:52:46 -04:00
Dave Abrahams
a84fff3931
Derive paths from virtualenv instead of hard-coding
2010-04-25 23:40:27 -04:00
Dave Abrahams
7dbdbd8739
Merged winfix branch and fixed the glaring mistakes so the tests still pass on *nix
2010-04-10 16:41:27 -04:00
Carl Meyer
c08009907b
put current pip on sys.path for tests; fixes #98 ; thanks Dave Abrahams
2010-04-26 20:05:58 -04:00
Ian Bicking
b987bb60fd
formatting
2010-04-22 02:43:32 -05:00
Ian Bicking
349f6094df
Automated merge with http://bitbucket.org/aconrad/pip/
2010-04-22 01:38:09 -05:00
Ian Bicking
ba464787e8
update tests to check temp files
2010-04-22 01:37:50 -05:00
Carl Meyer
c36a968fb4
update test runner to work with ScriptTest 1.0.2 (no _find_exe)
2010-04-19 08:43:29 -04:00
Carl Meyer
90c027cf23
fix logfile with no dirname; fixes #90
2010-04-19 07:51:15 -04:00
Alexandre Conrad
3a419a21a3
added tests for clean up operations
2010-04-18 14:10:04 +02:00
Simon Cross
1177baf6b4
Automated merge with file:///home/simon/hg/pip-ianb
2010-04-18 10:55:21 +02:00
Simon Cross
cf4861e495
Add check that after creating scratch venv calling python runs the right python.
2010-04-17 23:49:29 +02:00
Alexandre Conrad
aaccedf26a
centralized clean up code in one place
2010-04-17 18:36:31 +02:00
Alexandre Conrad
627c3e7242
Remove build directories after commands. Fixes #57
2010-04-16 19:26:39 +02:00
Carl Meyer
c6aa0bd497
ignore -f, -i, etc when uninstalling from reqs file
2010-04-16 11:53:04 -04:00
Hugo Lopes Tavares
c8798a2809
removed unused imports
2010-04-15 20:49:39 -03:00
Hugo Lopes Tavares
5fae811bf2
added test for completing snippets and added test to cover completion cmd alone
2010-04-15 19:18:48 -03:00
Hugo Lopes Tavares
5eeb56edce
added tests for unknown shell
2010-04-15 16:08:45 -03:00
Hugo Lopes Tavares
c5d006d520
added tests for completion
command (for bash and zsh)
2010-04-15 15:48:19 -03:00
Hugo Lopes Tavares
0998217cac
fixed installation problems and changed pypi index page to get package names faster
2010-04-15 15:38:47 -03:00
Simon Cross
67f82ddf6f
Add test that checks for a sensible error message on encountering missing source folders while using --no-download.
2010-04-15 17:08:02 +02:00
Simon Cross
87fc3be969
Tests for --no-download install option (currently fail).
2010-04-15 15:26:21 +02:00
Simon Cross
06e50ea78e
Add test for downloading an editable to a relative custom src folder.
2010-04-15 13:01:36 +02:00
Alexandre Conrad
9b761cb418
better directory detection and rename 'filename' functions to 'path' functions
2010-04-13 18:12:50 +02:00
Carl Meyer
9433c375fb
merge curdir/pardir fix from Alexandre Conrad
2010-04-13 02:59:43 -04:00
Carl Meyer
0e8230bb2b
fix uninstall-from-outside-editable test; some hg versions can't clone into existing dir. Thanks Dave Abrahams.
2010-04-12 21:26:42 -04:00
Carl Meyer
9d3ad30cd4
no longer necessary to set PYTHONPATH for running tests
2010-04-12 20:54:57 -04:00
Carl Meyer
4ee7604e4a
fix test runner to operate fully within no-site-packages virtualenv; thanks Dave Abrahams for initial patch
2010-04-12 20:48:37 -04:00
Alexandre Conrad
643afc1ebd
use curdir/pardir rather than '.' and '..' (cross-platform compatibility)
2010-04-10 12:13:46 +02:00
Alexandre Conrad
c8b6fa50fb
make pip work when current or parent dir is given: 'pip install .' and 'pip install ..'
2010-04-10 11:57:49 +02:00
Jannis Leidel
0bf943e4f4
Fixed #47 - Use ~/.pip/pip.log as the default location of log files.
2010-03-11 00:20:33 +01:00
Carl Meyer
15d872ea6d
complete removal of doctest harness
2010-03-09 14:39:05 -05:00
Carl Meyer
6bece5c2eb
remove doctest harness
2010-03-08 10:12:47 -05:00
Paul Nasrat
c930f0ed4f
Add initial basic tests for download option
2010-03-06 14:42:17 +00:00
Carl Meyer
4060b810c5
fix test names, remove old doctest files
2010-02-24 18:16:43 -05:00
Jakub Vysoky
17db3cce9a
respect merged changes in txt files
2010-02-24 11:24:55 +01:00
Jakub Vysoky
41f5a30721
test_upgrade.txt file transformed into unit tests
2010-02-24 11:24:55 +01:00
Jakub Vysoky
a244ee966f
test_uninstall.txt into py
2010-02-24 11:24:55 +01:00
Jakub Vysoky
1a56ef6ceb
test_search.txt to py
2010-02-24 11:24:55 +01:00
Jakub Vysoky
e098aa863d
test_requirements.txt into py
2010-02-24 11:24:55 +01:00
Jakub Vysoky
80b0fb779e
test_proxy.txt into py
2010-02-24 11:24:55 +01:00
Jakub Vysoky
0ac3f39eb8
test_freeze.txt into py
...
use textwrap.dedent for readability
2010-02-24 11:24:55 +01:00
Jakub Vysoky
56bf88b08e
test_config.txt into py
2010-02-24 11:24:55 +01:00
Jakub Vysoky
b0f58b60c4
test_bundle.txt into py
2010-02-24 11:24:55 +01:00
Jakub Vysoky
e79951f958
test discovery aware renaming
2010-02-24 11:24:54 +01:00
Jakub Vysoky
2f19a378c8
stay in tmp venv directory
...
because it controls pip-log file
we can be sure now, that correct pip is called
2010-02-24 11:24:54 +01:00
Jakub Vysoky
66783986dd
check if proper pip is called
...
there is still one prerequisity for running tests
you have to call python setup.py egg_info, because there is
``pip_dist = pkg_resources.get_distribution('pip')`` used in pip
2010-02-24 11:24:54 +01:00
Jakub Vysoky
bb92f03a17
py version of test_basic.txt doctests
...
test_pip is used as a helper function now
but still can be used as a testrunner for old txt files
2010-02-24 11:24:54 +01:00
Cody Soyland
64360ffe9b
Change function name "translate_hits" to "transform_hits" for clarity.
2010-02-23 15:01:43 -06:00
Cody Soyland
b439b9f42f
Added end-to-end test.
2010-02-22 18:00:18 -05:00
Cody Soyland
e238291990
Added pip search command with basic documentation and tests.
2010-02-22 17:03:05 -05:00
Carl Meyer
6a6411f92e
merge
2010-02-22 00:38:45 -05:00
Carl Meyer
9a465eeb10
add --local option to freeze; fixes #9
2010-02-22 00:37:28 -05:00
Ian Bicking
e0eae6ea84
fix some pyflakes warnings
2010-02-21 17:47:49 -05:00
Ian Bicking
13a3083066
Fix for pip bundle and local files, from whit
2009-12-08 13:25:07 -06:00
Carl Meyer
148ff3a8ed
fix uninstall of namespaced packages ( fixes #34 )
2009-12-04 13:18:21 -05:00
Ian Bicking
3d32c196b5
Extract commands into their own modules; fix a few imports and dead functions that pyflakes found
2009-11-20 12:20:52 -06:00
Ian Bicking
47d9c03c06
Extracted the Command class (and helpers); fix -E now that pip is a package; extracted some virtualenv stuff; extracted exceptions; tweak tests
2009-11-20 02:47:28 -06:00
Ian Bicking
4d02d7936c
Fix the invocation of pip, now that virtualenv includes pip and that installed version has to be overrided
2009-11-20 01:06:01 -06:00
Carl Meyer
a31d257a91
make bzr tests %7E/~ agnostic so they run on bzr 1.x and 2.x
2009-11-05 15:24:25 -05:00
Carl Meyer
ee615f6e5e
use django-wikiapp instead of pip-test for bzr tests
2009-11-05 15:01:15 -05:00
Carl Meyer
afc8797de9
tests for uninstall-rollback
2009-10-25 08:24:44 -04:00
Carl Meyer
f40473e5af
allow uninstall of develop-installs with source outside venv ( fix #12 )
2009-10-25 06:17:11 -04:00
Jannis Leidel
962d746c93
Removed part of the test code that stopped it when ~/.pip.cfg existed, added test_config.cfg to default args of test_pip.py
2009-10-25 00:23:10 +02:00
Jannis Leidel
081fe67039
Added tests for config file support
2009-10-24 15:24:29 +02:00
Jannis Leidel
0b88e5de32
Extended reset_env test tool to allow passing custom environ dicts required for testing config support.
2009-10-24 15:24:08 +02:00
Carl Meyer
cdb21eab1a
fixed uninstalling console_scripts
2009-10-23 14:09:59 -04:00
Carl Meyer
de728d3b51
fixes #8 : allow installing package==dev
2009-10-20 11:38:14 -04:00
Carl Meyer
1c33dd529b
use setuptools 0.6c11 in tests instead of 0.7a1 snapshot, which is now gone
2009-10-20 11:36:53 -04:00
Ian Bicking
3e2a044b23
Use different packages to test (Markdown requires ElementTree on Python<2.5, and simplejson compiles stuff)
2009-10-07 18:52:23 -05:00
Carl Meyer
d3c4430d36
requesting a specific requirement will upgrade even without --upgrade
2009-10-07 19:22:43 -04:00
Ian Bicking
7458ccdd9e
Add download caching to test runner; fix problem with using any() in test runner; make test_basic.txt run properly
2009-10-07 16:25:17 -05:00
Carl Meyer
b693ca9909
Automated merge with http://bitbucket.org/ianb/pip
2009-10-07 11:31:34 -04:00
Carl Meyer
a1ffdfbaac
fix comparison of repo URLs
2009-10-03 21:37:23 -04:00
Carl Meyer
3fce15540c
fix #55 (frozen editable URLs use revision hash/id only)
2009-10-03 20:32:30 -04:00
Carl Meyer
526320a262
test upgrade via reqs file
2009-09-08 11:01:44 -04:00
Carl Meyer
20d1974132
automatic uninstall before upgrade
2009-09-07 22:24:05 -04:00
Carl Meyer
1d1d644306
catch easy_installed script wrappers
2009-09-07 16:28:44 -04:00
Carl Meyer
f5e7e71cd0
remove empty directories left behind
2009-09-07 08:02:56 -04:00
Carl Meyer
974de4eaff
fix missing ignores in uninstall tests (revealed by fixed diff_states)
2009-09-06 13:16:53 -04:00
Carl Meyer
28681189b0
fix major bug in diff_states scripttest helper
2009-09-06 13:16:02 -04:00
Carl Meyer
ecfbbfdb19
merge from bugfix branch
2009-09-04 16:15:02 -04:00
Carl Meyer
f6b0c89ccb
fix freeze tests
2009-07-30 14:55:52 -04:00
Carl Meyer
58ad6a2db3
use django-feedutil in place of django-dbtemplates (disappeared) for git tests
2009-07-10 14:38:49 -04:00
Carl Meyer
0840c52a76
switch to django-feedutil for Git basic test, django-dbtemplates seems to be gone from github
2009-07-03 19:55:19 -04:00
Jannis Leidel
871283785b
Automated merge with http://bitbucket.org/ianb/pip/
2009-07-01 20:38:25 +02:00
Jannis Leidel
85a6c917f1
Updated freeze tests to use a more public repository
2009-06-24 22:46:06 +02:00
Carl Meyer
bd8e52f824
don't touch editable sources, Windows-friendly paths in uninstall tests
2009-04-06 13:59:20 -04:00
Carl Meyer
470f66515a
uninstall from requirements file
2009-03-31 17:57:38 -05:00
Carl Meyer
d9d32ae25b
refactor tests with diff_state
2009-03-31 17:17:08 -05:00
Carl Meyer
fc6c5821c3
uninstall editable installations
2009-03-31 15:56:38 -05:00
Carl Meyer
025a40e113
confirm file deletions
2009-03-31 12:53:10 -05:00
Carl Meyer
cddd176a0d
use installed-files.txt
2009-03-31 11:21:49 -05:00
Carl Meyer
7a229bf541
support for uninstalling easy_installed packages
2009-03-31 03:49:39 -05:00
Carl Meyer
721fcac534
experimental uninstall support
2009-03-31 02:13:48 -05:00
Jannis Leidel
bb67acb015
Removed dependency to bzrlib and added tests for Bazaar support.
2009-01-20 01:22:46 +01:00
Jannis Leidel
d70b32905b
Refactored the version control feature
2009-01-12 00:59:55 +01:00
Jannis Leidel
f9c29d8aa1
Added basic and freeze tests for Git and Mercurial support
2009-01-09 09:52:07 +01:00
Jannis Leidel
58101cf14f
Changed script result a bit to be able to run the tests on Mac OS X framework Python binary
2009-01-08 17:23:19 +01:00
Ian Bicking
0d58e2ea72
[svn r21837] Fix test regression for 2.4
2008-12-17 13:02:31 -06:00
Ian Bicking
047e60f494
[svn r21836] Fix tests for running with Python 2.5
2008-12-17 12:46:48 -06:00
Ian Bicking
9798d4a28d
[svn r21830] Fix a test where the error message language had changed
2008-12-17 12:03:43 -06:00
Ian Bicking
fb082c34c5
[svn r21072] add install argument to all-package tester
2008-10-28 00:50:09 -05:00
Ian Bicking
368a064ae4
[svn r21008] Implement the two-level commands, fix up lots of problems from that
2008-10-17 17:01:58 -05:00
Ian Bicking
97c152c463
[svn r20975] Rename occurrance of pyinstall to pip
2008-10-15 17:24:00 -05:00
Ian Bicking
c2000d7de6
[svn r20974] Renaming pyinstall to pip
2008-10-15 17:02:57 -05:00