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

Method may_configure_config_via_constructor

tests/loader.py:45–48  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

43 assert path == support
44
45 def may_configure_config_via_constructor(self):
46 config = Config({"tasks": {"collection_name": "mytasks"}})
47 loader = _BasicLoader(config=config)
48 assert loader.config.tasks.collection_name == "mytasks"
49
50 def adds_module_parent_dir_to_sys_path(self):
51 # Crummy doesn't-explode test.

Callers

nothing calls this directly

Calls 2

ConfigClass · 0.90
_BasicLoaderClass · 0.85

Tested by

no test coverage detected