(runner, args, expect)
| 118 | ], |
| 119 | ) |
| 120 | def test_string_option(runner, args, expect): |
| 121 | @click.command() |
| 122 | @click.option("--s", default="no value") |
| 123 | def cli(s): |
| 124 | click.echo(f"S:[{s}]") |
| 125 | |
| 126 | result = runner.invoke(cli, args) |
| 127 | assert expect in result.output |
| 128 | |
| 129 | if expect.startswith("Error:"): |
| 130 | assert result.exception is not None |
| 131 | else: |
| 132 | assert result.exception is None |
| 133 | |
| 134 | |
| 135 | @pytest.mark.parametrize( |
nothing calls this directly
no test coverage detected
searching dependent graphs…