A fake click Context for when calling functions that need it.
| 100 | |
| 101 | |
| 102 | class FakeContext(click.Context): |
| 103 | """A fake click Context for when calling functions that need it.""" |
| 104 | |
| 105 | def __init__(self) -> None: |
| 106 | self.default_map: Dict[str, Any] = {} |
| 107 | # Dummy root, since most of the tests don't care about it |
| 108 | self.obj: Dict[str, Any] = {"root": PROJECT_ROOT} |
| 109 | |
| 110 | |
| 111 | class FakeParameter(click.Parameter): |
no outgoing calls