MCPcopy Index your code
hub / github.com/python/cpython / test_entry_points

Method test_entry_points

Lib/test/test_importlib/metadata/test_api.py:85–92  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

83 self.assertEqual(top_level.read_text(), expect_content)
84
85 def test_entry_points(self):
86 eps = entry_points()
87 assert 'entries' in eps.groups
88 entries = eps.select(group='entries')
89 assert 'main' in entries.names
90 ep = entries['main']
91 self.assertEqual(ep.value, 'mod:main')
92 self.assertEqual(ep.extras, [])
93
94 def test_entry_points_distribution(self):
95 entries = entry_points(group='entries')

Callers

nothing calls this directly

Calls 3

entry_pointsFunction · 0.90
selectMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected