Skip to content

Commit b5081fa

Browse files
committed
Capture the legacy expectation.
1 parent 6596183 commit b5081fa

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/test_api.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,16 @@ def test_entry_points_missing_name(self):
8282
def test_entry_points_missing_group(self):
8383
assert entry_points()['missing'] == ()
8484

85+
def test_entry_points_dict_construction(self):
86+
"""
87+
Prior versions of entry_points() returned simple lists and
88+
allowed casting those lists into maps by name using ``dict()``.
89+
Capture this now deprecated use-case.
90+
"""
91+
eps = dict(entry_points()['entries'])
92+
assert 'main' in eps
93+
assert eps['main'] == entry_points()['entries']['main']
94+
8595
def test_metadata_for_this_package(self):
8696
md = metadata('egginfo-pkg')
8797
assert md['author'] == 'Steven Ma'

0 commit comments

Comments
 (0)