Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 authored and finswimmer committed Aug 16, 2020
1 parent 5fc4db7 commit 0d48fb6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/repositories/test_pypi_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,3 +215,11 @@ def test_urls():

assert "https://pypi.org/simple/" == repository.url
assert "https://pypi.org/simple/" == repository.authenticated_url


def test_use_pypi_pretty_name():
repo = MockRepository(fallback=True)

package = repo.find_packages("twisted")
assert len(package) == 1
assert package[0].pretty_name == "Twisted"

0 comments on commit 0d48fb6

Please sign in to comment.