Skip to content

Commit

Permalink
Corrected ReleaseInfo comparison for find_links test
Browse files Browse the repository at this point in the history
  • Loading branch information
cc-a committed Aug 29, 2020
1 parent c54ba7d commit 4018142
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions tests/repositories/test_find_links_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,15 @@ def test_get_release_info():

for package_name in TEST_PACKAGES:
package = repo.find_packages(package_name)[0]
assert repo.get_release_info(
info = repo.get_release_info(
package_name, package.version.text
) == legacy_repo.get_release_info(package_name, package.version.text)
)
legacy_info = legacy_repo.get_release_info(package_name, package.version.text)
assert info.cache_version == legacy_info.cache_version
assert info.files == legacy_info.files
assert info.name == legacy_info.name
assert info.platform == legacy_info.platform
assert info.requires_dist == legacy_info.requires_dist
assert info.requires_python == legacy_info.requires_python
assert info.summary == legacy_info.summary
assert info.version == legacy_info.version

0 comments on commit 4018142

Please sign in to comment.