Add tests for the bug

This commit is contained in:
Pradyun Gedam 2019-01-23 08:01:29 +05:30
parent 085e7403b2
commit e55fcea956
No known key found for this signature in database
GPG Key ID: DA17C4B29CB32E4B
2 changed files with 22 additions and 0 deletions

View File

@ -420,3 +420,11 @@ def test_wheel_compile_syntax_error(script, data):
result = script.pip('install', '--compile', package, '--no-index')
assert 'yield from' not in result.stdout
assert 'SyntaxError: ' not in result.stdout
def test_wheel_install_with_no_cache_dir(script, tmpdir, data):
"""Check wheel installations work, even with no cache.
"""
package = data.packages.join("simple.dist-0.1-py2.py3-none-any.whl")
result = script.pip('install', '--no-cache-dir', '--no-index', package)
result.assert_installed('simpledist', editable=False)

View File

@ -109,3 +109,17 @@ def test_pep517_backend_requirements_already_satisfied(script, tmpdir, data):
project_dir,
)
assert 'Installing backend dependencies:' not in result.stdout
def test_pep517_install_with_no_cache_dir(script, tmpdir, data):
"""Check builds with a custom backends work, even with no cache.
"""
project_dir = make_project(
tmpdir, requires=['test_backend'],
backend="test_backend"
)
result = script.pip(
'install', '--no-cache-dir', '--no-index', '-f', data.backends,
project_dir,
)
result.assert_installed('project', editable=False)