Skip to content
Myr

✏️ Fix typo in test name (#1165)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sofie Van Landeghem · committed by GitHub · parent 5474f0b · Browse files · 3 files+20 added−20 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+20 added−20 removed

  • tests:+20 added−20 removed

3 files+20 added−20 removed

deleted:tests/assets/conrner_cases.py-19 removed
1import typer23app = typer.Typer()456@app.command(context_settings={"auto_envvar_prefix": "TEST"})7def main(8 name: str = typer.Option("John", hidden=True),9 lastname: str = typer.Option("Doe", "/lastname", show_default="Mr. Doe"),10 age: int = typer.Option(lambda: 42, show_default=True),11):12 """13 Say hello.14 """15 print(f"Hello {name} {lastname}, it seems you have {age}")161718if __name__ == "__main__":19 app()
added:tests/assets/corner_cases.py+19 added
1import typer23app = typer.Typer()456@app.command(context_settings={"auto_envvar_prefix": "TEST"})7def main(8 name: str = typer.Option("John", hidden=True),9 lastname: str = typer.Option("Doe", "/lastname", show_default="Mr. Doe"),10 age: int = typer.Option(lambda: 42, show_default=True),11):12 """13 Say hello.14 """15 print(f"Hello {name} {lastname}, it seems you have {age}")161718if __name__ == "__main__":19 app()
modified:tests/test_corner_cases.py+1 added-1 removed
1import typer.core2from typer.testing import CliRunner34from tests.assets import conrner_cases as mod4from tests.assets import corner_cases as mod56runner = CliRunner()78
27 unmodified lines