Skip to content

Commit 7f28547

Browse files
committed
Add Test without ntlm requirements.
1 parent e94b2ea commit 7f28547

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/functional/test_install.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,23 @@ def test_with_setuptools_and_import_error(script, data):
6060
assert "ImportError: toto" in result.stderr
6161

6262

63+
def test_without_ntlm(script, data):
64+
result = script.run(
65+
"python", "-c",
66+
"import pip; pip.main(["
67+
"'install', "
68+
"'INITools==0.2', "
69+
"'-f', '%s', "
70+
"'--auth-ntlm'])" % data.packages,
71+
expect_error=True,
72+
)
73+
assert (
74+
"Dependencies for Ntlm authentication are missing. Install "
75+
"dependencies via the 'pip install pip[ntlm]' command."
76+
in result.stderr
77+
)
78+
79+
6380
def test_pip_second_command_line_interface_works(script, data):
6481
"""
6582
Check if ``pip<PYVERSION>`` commands behaves equally

0 commit comments

Comments
 (0)