We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b5dfe2 commit aad39d5Copy full SHA for aad39d5
1 file changed
tests/test_cli.py
@@ -1,5 +1,6 @@
1
"""Tests for the Typer CLI entry point."""
2
3
+import re
4
from pathlib import Path
5
from unittest.mock import ANY, MagicMock, patch
6
@@ -653,8 +654,9 @@ def test_replay_total_duration(tmp_path: Path) -> None:
653
654
def test_demo_help() -> None:
655
result = runner.invoke(app, ["demo", "--help"])
656
assert result.exit_code == 0
- assert "--output" in result.output
657
- assert "--github-url" in result.output
+ plain = re.sub(r"\x1b\[[0-9;]*m", "", result.output)
658
+ assert "--output" in plain
659
+ assert "--github-url" in plain
660
661
662
def test_demo_runs(tmp_path: Path) -> None:
0 commit comments