Validate syntax of --pdbcls option.
(value: str)
| 30 | |
| 31 | |
| 32 | def _validate_usepdb_cls(value: str) -> Tuple[str, str]: |
| 33 | """Validate syntax of --pdbcls option.""" |
| 34 | try: |
| 35 | modname, classname = value.split(":") |
| 36 | except ValueError as e: |
| 37 | raise argparse.ArgumentTypeError( |
| 38 | f"{value!r} is not in the format 'modname:classname'" |
| 39 | ) from e |
| 40 | return (modname, classname) |
| 41 | |
| 42 | |
| 43 | def pytest_addoption(parser: Parser) -> None: |
no outgoing calls