Skip to content

Commit

Permalink
Minor stylistic refactoring in proxy test
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Feb 23, 2025
1 parent cf6e3d0 commit 9bbc9ce
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/functional/test_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,13 @@ def test_build_deps_use_proxy_from_cli(
script: PipTestEnvironment, capfd: pytest.CaptureFixture[str], data: TestData
) -> None:
with proxy.Proxy(port=0, num_acceptors=1, plugins=[AccessLogPlugin]) as proxy1:
args = ["wheel", "-v", str(data.packages / "pep517_setup_and_pyproject")]
args.extend(["--proxy", f"http://127.0.0.1:{proxy1.flags.port}"])
result = script.pip(*args)
result = script.pip(
"wheel",
"-v",
str(data.packages / "pep517_setup_and_pyproject"),
"--proxy",
f"http://127.0.0.1:{proxy1.flags.port}",
)

wheel_path = script.scratch / "pep517_setup_and_pyproject-1.0-py3-none-any.whl"
result.did_create(wheel_path)
Expand Down

0 comments on commit 9bbc9ce

Please sign in to comment.