File tree 1 file changed +13
-3
lines changed 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -180,6 +180,11 @@ def names(self):
180
180
181
181
@property
182
182
def groups (self ):
183
+ """
184
+ For coverage while SelectableGroups is present.
185
+ >>> EntryPoints().groups
186
+ set()
187
+ """
183
188
return set (ep .group for ep in self )
184
189
185
190
@classmethod
@@ -202,11 +207,16 @@ def load(cls, eps):
202
207
203
208
@property
204
209
def groups (self ):
205
- return self .keys ()
210
+ return set ( self .keys () )
206
211
207
212
@property
208
213
def names (self ):
209
- return (ep .name for ep in self ._all )
214
+ """
215
+ for coverage:
216
+ >>> SelectableGroups().names
217
+ set()
218
+ """
219
+ return set (ep .name for ep in self ._all )
210
220
211
221
@property
212
222
def _all (self ):
@@ -218,7 +228,7 @@ def select(self, **params):
218
228
return EntryPoints (self ._all ).select (** params )
219
229
220
230
221
- class LegacyGroupedEntryPoints (EntryPoints ):
231
+ class LegacyGroupedEntryPoints (EntryPoints ): # pragma: nocover
222
232
"""
223
233
Compatibility wrapper around EntryPoints to provide
224
234
much of the 'dict' interface previously returned by
You can’t perform that action at this time.
0 commit comments