File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212from unittest .mock import MagicMock , patch
1313
1414# We use typer's CliRunner for testing typer apps
15+ import click
1516from typer .testing import CliRunner
1617
1718# Third-Party
@@ -124,12 +125,13 @@ def test_help_exits_zero(self):
124125
125126 def test_help_contains_options (self ):
126127 result = runner .invoke (app , ["bootstrap" , "--help" ])
127- assert "--destination" in result .output
128- assert "--template_type" in result .output
129- assert "--template_url" in result .output
130- assert "--vcs_ref" in result .output
131- assert "--no_input" in result .output
132- assert "--dry_run" in result .output
128+ output = click .unstyle (result .output )
129+ assert "--destination" in output
130+ assert "--template_type" in output
131+ assert "--template_url" in output
132+ assert "--vcs_ref" in output
133+ assert "--no_input" in output
134+ assert "--dry_run" in output
133135
134136
135137class TestBootstrapDryRun :
You can’t perform that action at this time.
0 commit comments