We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6596183 commit b5081faCopy full SHA for b5081fa
tests/test_api.py
@@ -82,6 +82,16 @@ def test_entry_points_missing_name(self):
82
def test_entry_points_missing_group(self):
83
assert entry_points()['missing'] == ()
84
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
+
95
def test_metadata_for_this_package(self):
96
md = metadata('egginfo-pkg')
97
assert md['author'] == 'Steven Ma'
0 commit comments