pip/tests/functional
Tzu-ping Chung d45541c8f3 Skip candidate not providing valid metadata
This is done by catching InstallationError from the underlying
distribution preparation logic. There are three cases to catch:

1. Candidates from indexes. These are simply ignored since we can
   potentially satisfy the requirement with other candidates.
2. Candidates from URLs with a dist name (PEP 508 or #egg=). A new
   UnsatisfiableRequirement class is introduced to represent this; it is
   like an ExplicitRequirement without an underlying candidate. As the
   name suggests, an instance of this can never be satisfied, and will
   cause eventual backtracking.
3. Candidates from URLs without a dist name. This is only possible for
   top-level user requirements, and no recourse is possible for them. So
   we error out eagerly.

The InstallationError raised during distribution preparation is cached
in the factory, like successfully prepared candidates, since we don't
want to repeatedly try to build a candidate if we already know it'd
fail. Plus pip's preparation logic also does not allow packages to be
built multiple times anyway.
2020-12-12 02:23:32 +08:00
..
__init__.py break up tests dir into data, unit tests, and functional tests 2013-05-29 13:41:12 -07:00
test_broken_stdout.py Use the requested log level when handling broken stdout pipe. 2019-01-21 12:45:59 -08:00
test_build_env.py Move build_env tests to functional 2020-10-25 23:32:26 +05:30
test_cache.py Rename to 'Package index page cache location' 2020-10-02 09:59:38 +03:00
test_check.py tests: Check only the last output lines 2020-07-27 19:51:47 +05:30
test_cli.py Revert "fix test_entrypoints_work test" 2020-05-13 02:50:10 +05:30
test_completion.py Convert the remaining '%' formatters to '.format'. Fixes #6973. 2020-03-06 12:43:03 -05:00
test_configuration.py Prepare isort for black 2020-09-23 21:47:47 +05:30
test_debug.py Print output in test_debug__library_versions 2020-07-22 19:57:20 +05:30
test_download.py Do not download editables while preparing requirements 2020-11-22 21:14:09 +01:00
test_fast_deps.py Test hash checking for fast-deps 2020-08-17 20:46:39 +07:00
test_freeze.py Add --exclude option to pip freeze and pip list commands 2020-10-30 21:50:59 +01:00
test_hash.py Rename compatible functions in tests.lib.path.Path. 2019-07-02 18:48:44 -04:00
test_help.py tests: Add extra_index_url test case to help redact url 2020-12-02 22:53:43 +02:00
test_install.py Skip tests that fail on Python 2 2020-10-30 23:09:00 +05:30
test_install_check.py Update message displayed on conflicts post-resolution 2020-11-12 06:53:29 +05:30
test_install_cleanup.py Not clear why this didn't fail before... 2020-10-27 15:49:38 +00:00
test_install_compat.py use methods for path lookups in files:{test_install, test_install_compat} 2020-05-29 13:42:13 +05:30
test_install_config.py Skip tests that fail on Python 2 2020-10-30 23:09:00 +05:30
test_install_direct_url.py This should not fail anymore 2020-06-02 20:03:53 +08:00
test_install_extras.py Deprecate requirements format "base>=1.0[extra]" 2020-07-13 12:33:50 +03:00
test_install_force_reinstall.py refactor(tests): Add helper methods for path lookups 2020-06-02 17:38:55 +05:30
test_install_index.py Reduce reliance on .egg-info directories in test suite 2020-07-25 13:02:20 +02:00
test_install_reqs.py Modify old tests to accomodate restriction removal 2020-11-21 22:14:24 +08:00
test_install_requested.py Mark top level requirements as REQUESTED 2020-05-31 18:33:51 +02:00
test_install_upgrade.py Switch to resolver variants in the test suite 2020-10-30 07:16:19 +05:30
test_install_user.py Mark tests using remote svn and hg as xfail 2020-08-24 09:43:50 +07:00
test_install_vcs_git.py Reduce reliance on .egg-info directories in test suite 2020-07-25 13:02:20 +02:00
test_install_wheel.py Provide a reasonable error on invalid scheme keys 2020-07-29 22:24:09 -04:00
test_list.py Add --exclude option to pip freeze and pip list commands 2020-10-30 21:50:59 +01:00
test_new_resolver.py Skip candidate not providing valid metadata 2020-12-12 02:23:32 +08:00
test_new_resolver_errors.py Update tests for resolver changes 2020-10-30 23:08:31 +05:30
test_new_resolver_hashes.py Update tests for resolver changes 2020-10-30 23:08:31 +05:30
test_new_resolver_target.py Update tests for resolver changes 2020-10-30 23:08:31 +05:30
test_new_resolver_user.py Update tests for resolver changes 2020-10-30 23:08:31 +05:30
test_no_color.py Remove unused imports 2018-06-13 13:17:30 +05:30
test_pep517.py Fix tests module with flake8-bugbear 2020-06-05 02:41:08 +05:30
test_requests.py Switch pip to use Warehouse by default 2018-04-16 15:54:11 -04:00
test_search.py delete some dead test code (VERBOSE_FALSE) 2020-10-12 16:05:05 -07:00
test_show.py Addressed review comments 2020-04-08 13:59:33 +05:30
test_uninstall.py Prepare isort for black 2020-09-23 21:47:47 +05:30
test_uninstall_user.py Reduce reliance on .egg-info directories in test suite 2020-07-25 13:02:20 +02:00
test_vcs_bazaar.py Updated author email in configuration and tests 2020-05-28 16:51:02 -04:00
test_vcs_git.py Add spacing in test 2020-08-30 18:15:35 +02:00
test_vcs_mercurial.py Normailze case in tests 2020-01-15 17:50:41 +08:00
test_warning.py Add option to silence warnings related to deprecation of Python versions (#6739) 2019-12-15 09:59:34 +08:00
test_wheel.py Add failing test for issue 9122 2020-11-12 13:20:45 +01:00
test_yaml.py Update YAML tests for resolver changes 2020-10-30 23:08:47 +05:30