Check that we get a prompt in the standard form
(
tui: SpawnBase,
name: str,
expected_type: str,
help: str | None = None,
)
| 140 | |
| 141 | |
| 142 | def expect_prompt( |
| 143 | tui: SpawnBase, |
| 144 | name: str, |
| 145 | expected_type: str, |
| 146 | help: str | None = None, |
| 147 | ) -> None: |
| 148 | """Check that we get a prompt in the standard form""" |
| 149 | if help: |
| 150 | tui.expect_exact(help) |
| 151 | else: |
| 152 | tui.expect_exact(name) |
| 153 | if expected_type != "str": |
| 154 | tui.expect_exact(f"({expected_type})") |
| 155 | |
| 156 | |
| 157 | git: BaseCommand = _git.with_env( |
no outgoing calls