Commit Graph

37 Commits

Author SHA1 Message Date
Devesh Kumar Singh fe6920bc2f Addressed review comments 2020-04-08 13:59:33 +05:30
Devesh Kumar Singh 29b4ec79ed Fixed issue in test_show for failing test 2020-04-06 00:27:30 +05:30
Devesh Kumar Singh 2324ae422e Add unit tests for pip commands not using cwd 2020-04-05 23:17:03 +05:30
Pradyun Gedam e648e00dc0
pip is spelt all-lowercase 2020-02-18 10:55:16 +05:30
Deepak Sharma b242c3979a String formatting updated 2020-01-23 18:09:59 +05:30
ofrinevo 1c4881157e Remove useless python packages from required_cap
Rename stub package required_by_mixed_cap to requires_requires_cap
Move the canonicalize_name calculation outside of a loop
2019-09-03 20:46:28 +03:00
ofrinevo bc65d55d8b Fix all failing tests 2019-09-02 19:41:51 +03:00
ofrinevo 35c2161785 Improve the documentation of the added tests 2019-09-01 21:32:00 +03:00
ofrinevo a05de613fc Add a test that checks for mixed upper and lower case letters
in pip show
Remove useless import in stubs for named tests
2019-09-01 21:28:31 +03:00
ofrinevo b951dd954e Remove a print command left by mistake in the test 2019-08-31 22:38:04 +03:00
ofrinevo ce17cf9c32 Fix test_show_required_by_packages_capitalized documentation being too long 2019-08-31 22:09:41 +03:00
ofrinevo c674fabe95 Fix package name not being canonicalize in commands/show
Add test to check if a capitalized name is being shown properly
Add new stub package to support the test
2019-08-31 21:44:41 +03:00
Steve Barnes 3198ba6185 Change pip show to report missing packages. 2019-08-18 01:27:14 -07:00
Chris Hunt 39ac9ca351 Rename compatible functions in tests.lib.path.Path. 2019-07-02 18:48:44 -04:00
Pradyun Gedam e31d784b41
Rename a few tests to add the word "basic"
This essentially allows me to do an overall check general check by running the tests using pytest's `-k basic` syntax. Given that I like running tests often and that, in general, I make typos more often than changes that break core functionality, I think this will reduce cycle times for me.
2017-12-16 23:43:46 +05:30
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
Donald Stufft 95bcf8c5f6 Move all internal APIs to pip._internal 2017-08-31 14:53:00 -04:00
Pradyun S. Gedam c92cbe7aba Add Required-by field to pip show (#4564) 2017-06-26 08:58:52 -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
Xavier Fernandez 4716962112 Improve tests
- improve two tests to make them network-less
- add a bunch of pytest.mark
2016-12-04 21:54:50 +01:00
Maxim Kurnikov 84e9265970 add canonicalize_name() call to show 2016-10-11 17:09:41 +02:00
Connor Osborn ce868f9742 Increase pip show test coverage 2016-07-26 18:59:22 -07:00
Connor Osborn 357123fcf4 Fix existing tests for pip show with --verbose 2016-07-26 18:59:22 -07:00
Xavier Fernandez 09233da9d7 Hide the line if installer is unknown 2016-03-04 16:10:59 +01:00
Xavier Fernandez dc533f8469 show: add PEP376 INSTALLER information
closes #3517
2016-03-04 13:55:39 +01:00
Xavier Fernandez a0d6210905 pip.show: always show classifiers 2016-03-04 11:12:34 +01:00
Xavier Fernandez dc1e89d854 Add --classifiers option to pip show 2016-03-04 11:12:11 +01:00
Donald Stufft a88bc0de73 Send log messages >= logging.WARNING to stderr 2015-04-06 23:11:16 -04:00
Donald Stufft 7bfeb3a527 Merge pull request #2354 from sYnfo/master
Mark tests requiring Internet access
2015-01-15 06:58:50 -05:00
Matej Stuchlik c5024dc851 Mark tests requiring Internet access 2015-01-15 00:53:15 +01:00
Marc Abramowitz ff79f3cb8d Make `pip show` show much more metadata
New fields:
  - Metadata-Version
  - Summary
  - Home-Page
  - Author
  - Author-email
  - License
  - Entry-points

Sample output:

    $ pip show pytest
    ---
    Metadata-Version: 1.1
    Name: pytest
    Version: 2.6.4
    Summary: pytest: simple powerful testing with Python
    Home-page: http://pytest.org
    Author: Holger Krekel, Benjamin Peterson, Ronny Pfannschmidt, Floris Bruynooghe and others
    Author-email: holger at merlinux.eu
    License: MIT license
    Location: /Users/marca/python/virtualenvs/tmp-4e2169280f5cbd16/lib/python3.4/site-packages
    Requires: py
    Entry points:
      [console_scripts]
      py.test = pytest:main
      py.test-3.4 = pytest:main
2014-12-19 09:44:58 -08:00
Marc Abramowitz 3c13267188 Make test_missing_argument expect error 2014-12-15 20:58:20 -08:00
Matthew Iversen 4ef2dca0d7 Allow pip to show files installed for wheels
- shortened looping logic in search_packages_info
- added logic to find installed files for .dist-info's
- Seemed to be off-by-one error for assert exceptions in test_show_with_files_not_found
- changed ..._with_files_not_found to use an editable install for being unlistable
- added test to assert a wheel's files are now listed :D
2014-03-12 16:31:41 +11: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 2e2ce0f4e9 break up tests dir into data, unit tests, and functional tests 2013-05-29 13:41:12 -07:00
Renamed from tests/test_show.py (Browse further)