MCPcopy Create free account
hub / github.com/pyinvoke/invoke / works_great_with_subclassing

Method works_great_with_subclassing

tests/collection.py:196–201  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

194 assert self.c.__doc__.strip().split("\n")[0] == expected
195
196 def works_great_with_subclassing(self):
197 class MyCollection(Collection):
198 pass
199
200 c = MyCollection.from_module(load("integration"))
201 assert isinstance(c, MyCollection)
202
203 def submodule_names_are_stripped_to_last_chunk(self):
204 with support_path():

Callers

nothing calls this directly

Calls 2

loadFunction · 0.90
from_moduleMethod · 0.80

Tested by

no test coverage detected