Skip to content

Commit

Permalink
Pacify functional tests that don't start with <!doctype html>
Browse files Browse the repository at this point in the history
  • Loading branch information
pradyunsg committed Jan 30, 2022
1 parent c3a42f0 commit a78845a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions tests/functional/test_install_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
)
from tests.lib.venv import VirtualEnvironment

TEST_PYPI_INITOOLS = "https://test.pypi.org/simple/initools/"


def test_options_from_env_vars(script: PipTestEnvironment) -> None:
"""
Expand Down Expand Up @@ -94,7 +96,7 @@ def test_command_line_append_flags(
variables.
"""
script.environ["PIP_FIND_LINKS"] = "https://test.pypi.org"
script.environ["PIP_FIND_LINKS"] = TEST_PYPI_INITOOLS
result = script.pip(
"install",
"-vvv",
Expand Down Expand Up @@ -133,7 +135,7 @@ def test_command_line_appends_correctly(
Test multiple appending options set by environmental variables.
"""
script.environ["PIP_FIND_LINKS"] = f"https://test.pypi.org {data.find_links}"
script.environ["PIP_FIND_LINKS"] = f"{TEST_PYPI_INITOOLS} {data.find_links}"
result = script.pip(
"install",
"-vvv",
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/test_new_resolver_hashes.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def _create_find_links(script: PipTestEnvironment) -> _FindLinks:
wheel_url=path_to_url(wheel_path),
wheel_hash=wheel_hash,
wheel_path=wheel_path,
)
).strip()
)

return _FindLinks(index_html, sdist_hash, wheel_hash)
Expand Down

0 comments on commit a78845a

Please sign in to comment.