Skip to content

Commit

Permalink
Add unit test for packages_distributions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Aug 14, 2021
1 parent b26db5e commit b379ff6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_main.py
Expand Up @@ -17,6 +17,7 @@
distributions,
entry_points,
metadata,
packages_distributions,
version,
)

Expand Down Expand Up @@ -282,3 +283,9 @@ def test_unicode_dir_on_sys_path(self):
prefix=self.site_dir,
)
list(distributions())


class PackagesDistributionsTest(fixtures.ZipFixtures, unittest.TestCase):
def test_packages_distributions_example(self):
self._fixture_on_path('example-21.12-py3-none-any.whl')
assert packages_distributions()['example'] == ['example']

0 comments on commit b379ff6

Please sign in to comment.