Skip to content

Commit

Permalink
Add test capturing failure. Ref #337.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Aug 13, 2021
1 parent 592bf6b commit f4f788e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_api.py
Expand Up @@ -180,6 +180,10 @@ def test_entry_points_groups_get(self):
entry_points().get('entries', 'default') == entry_points()['entries']
entry_points().get('missing', ()) == ()

def test_entry_point_as_dict(self):
ep = entry_points(group='entries')['main']
assert ep._asdict() == dict(name='main', group='entries', value='mod:main')

def test_metadata_for_this_package(self):
md = metadata('egginfo-pkg')
assert md['author'] == 'Steven Ma'
Expand Down

0 comments on commit f4f788e

Please sign in to comment.