Skip to content

Commit c601832

Browse files
committed
revert back to old format to explicitely set Rich formatting in app
1 parent 62b6b59 commit c601832

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

tests/test_tutorial/test_arguments/test_help/test_tutorial006.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
import subprocess
22
import sys
33

4+
import typer
45
from typer.testing import CliRunner
56

67
from docs_src.arguments.help import tutorial006 as mod
78

89
runner = CliRunner()
9-
app = mod.app
10+
11+
app = typer.Typer(rich_markup_mode=None)
12+
app.command()(mod.main)
1013

1114

1215
def test_help():

tests/test_tutorial/test_arguments/test_help/test_tutorial006_an.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
import subprocess
22
import sys
33

4+
import typer
45
from typer.testing import CliRunner
56

67
from docs_src.arguments.help import tutorial006_an as mod
78

89
runner = CliRunner()
9-
app = mod.app
10+
11+
app = typer.Typer(rich_markup_mode=None)
12+
app.command()(mod.main)
1013

1114

1215
def test_help():

0 commit comments

Comments
 (0)