提交 a05de613 编写于 作者: O ofrinevo

Add a test that checks for mixed upper and lower case letters

in pip show
Remove useless import in stubs for named tests
上级 9b6c0ea8
from setuptools import setup
setup(name='requires_Capitalized',
version='0.1',
install_requires=['simple==1.0']
)
from setuptools import find_packages, setup
from setuptools import setup
setup(name='Requires_Capitalized',
version='0.1',
......
......@@ -236,3 +236,21 @@ def test_show_required_by_packages_capitalized(script, data):
assert 'Name: simple' in lines
assert 'Required-by: Requires-Capitalized' in lines
def test_show_required_by_with_mixed_capitalization(script, data):
"""
Test that installed packages that depend on this package are shown
where the package requires a name with a mix of
lower and upper case letters
"""
editable_path = os.path.join(data.src, 'required_by_mixed_capitalization')
script.pip(
'install', '--no-index', '-f', data.find_links, editable_path
)
result = script.pip('show', 'Requires_CapitalizeD')
lines = result.stdout.splitlines()
assert 'Name: Requires-Capitalized' in lines
assert 'Required-by: simple' in lines
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册