Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_get_wheel_args():
fake_env = ("python_executable", "snek"), ("pip_version", "8.8.8")
url = "https://user:pass@example.org:8888/something"
args = johnnydep.pipper._get_wheel_args(index_url=url, env=fake_env, extra_index_url=None)
assert args == [
"snek",
"-m",
"pip",
"wheel",
"-vvv",
"--no-deps",
"--no-cache-dir",
"--disable-pip-version-check",
"--index-url",
"https://user:pass@example.org:8888/something",
"--trusted-host",
"example.org",
]