Skip to content

Commit

Permalink
Fixed the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vanschelven committed Jul 25, 2022
1 parent f2c49cd commit d57c5dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/functional/test_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,9 @@ def test_cache_info(
result = script.pip("cache", "info")

assert f"Package index page cache location: {http_cache_dir}" in result.stdout
assert f"Wheels location: {wheel_cache_dir}" in result.stdout
assert f"Built wheels location: {wheel_cache_dir}" in result.stdout
num_wheels = len(wheel_cache_files)
assert f"Number of wheels: {num_wheels}" in result.stdout
assert f"Number of built wheels: {num_wheels}" in result.stdout


@pytest.mark.usefixtures("populate_wheel_cache")
Expand Down Expand Up @@ -242,9 +242,9 @@ def test_cache_list_abspath(script: PipTestEnvironment) -> None:
@pytest.mark.usefixtures("empty_wheel_cache")
def test_cache_list_with_empty_cache(script: PipTestEnvironment) -> None:
"""Running `pip cache list` with an empty cache should print
"Nothing cached." and exit."""
"No locally built wheels cached." and exit."""
result = script.pip("cache", "list")
assert result.stdout == "Nothing cached.\n"
assert result.stdout == "No locally built wheels cached.\n"


@pytest.mark.usefixtures("empty_wheel_cache")
Expand Down

0 comments on commit d57c5dd

Please sign in to comment.