Skip to content

Commit

Permalink
Fix the test for test__package_not_exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Yao-Wen-Chang committed May 30, 2024
1 parent 182475a commit f18dfe2
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/test_pypistats.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,9 +750,7 @@ def test_format_pandas(self) -> None:

def test__package_not_exist(self) -> None:
package = "a" * 100
endpoint = f"packages/{package}/recent"
params = pypistats._paramify("period", None)
result = pypistats.pypi_stats_api(endpoint, params)

result = pypistats.python_major(package)

# Assert
assert result is f"The package '{package}' does not exist"
assert result == f"The package '{package}' does not exist"

0 comments on commit f18dfe2

Please sign in to comment.