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

Method loads_real_user_config

integration/main.py:68–78  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

66 assert "mytask" in result.stdout
67
68 def loads_real_user_config(self) -> None:
69 path = os.path.expanduser("~/.invoke.yaml")
70 try:
71 with open(path, "w") as fd:
72 fd.write("foo: bar")
73 _output_eq("inv print-config", "bar")
74 finally:
75 try:
76 os.unlink(path)
77 except OSError:
78 pass
79
80 @trap
81 def invocable_via_python_dash_m(self) -> None:

Callers

nothing calls this directly

Calls 1

_output_eqFunction · 0.85

Tested by

no test coverage detected