(self)
| 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: |
nothing calls this directly
no test coverage detected