Skip to content

Commit

Permalink
馃帹 [pre-commit.ci] Auto format from pre-commit.com hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Dec 22, 2023
1 parent 6a7ae2d commit 790cd70
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/test_rich_markup_mode.py
Expand Up @@ -11,8 +11,7 @@ def test_rich_markup_mode_default():

@app.command()
def main(arg: str):
"""Main function
"""
"""Main function"""
print("Hello World")

assert app.rich_markup_mode == None
Expand All @@ -22,15 +21,14 @@ def main(arg: str):


def test_rich_markup_mode_rich():
app = typer.Typer(rich_markup_mode='rich')
app = typer.Typer(rich_markup_mode="rich")

@app.command()
def main(arg: str):
"""Main function
"""
"""Main function"""
print("Hello World")

assert app.rich_markup_mode == 'rich'
assert app.rich_markup_mode == "rich"

result = runner.invoke(app, ["--help"])
assert any(c in result.stdout for c in rounded)

0 comments on commit 790cd70

Please sign in to comment.