refactor: Consolidate text color decorators and update related properties

This commit is contained in:
sha
2026-01-04 20:49:55 +00:00
parent 3f8b158135
commit 336b030a6b
11 changed files with 136 additions and 280 deletions
-6
View File
@@ -78,12 +78,6 @@ class TestTextFormatter:
result = TextFormatter.red("test")
assert result == "[red]test[/red]"
def test_bold_green_deprecated(self):
"""Test deprecated bold_green method."""
with pytest.warns(DeprecationWarning):
result = TextFormatter.bold_green("test")
assert "[bold green]" in result
class TestDurationFormatter:
"""Test DurationFormatter functionality."""