MCPcopy Index your code
hub / github.com/pyinvoke/invoke / setup_method

Method setup_method

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

Source from the content-addressed store, hash-verified

234
235 class explicit_root_ns:
236 def setup_method(self):
237 mod = load("explicit_root")
238 mod.ns.configure(
239 {
240 "key": "builtin",
241 "otherkey": "yup",
242 "subconfig": {"mykey": "myvalue"},
243 }
244 )
245 mod.ns.name = "builtin_name"
246 self.unchanged = Collection.from_module(mod)
247 self.changed = Collection.from_module(
248 mod,
249 name="override_name",
250 config={
251 "key": "override",
252 "subconfig": {"myotherkey": "myothervalue"},
253 },
254 )
255
256 def inline_config_with_root_namespaces_overrides_builtin(self):
257 assert self.unchanged.configuration()["key"] == "builtin"

Callers

nothing calls this directly

Calls 3

loadFunction · 0.90
configureMethod · 0.80
from_moduleMethod · 0.80

Tested by

no test coverage detected