mirror of
https://github.com/shadoll/moma.git
synced 2026-08-28 11:33:25 +00:00
refactor: Consolidate text color decorators and update related properties
This commit is contained in:
@@ -78,9 +78,9 @@ class TestTextDecorators:
|
||||
assert obj.get_text() == "[bold]Hello[/bold]"
|
||||
|
||||
def test_green_decorator(self):
|
||||
"""Test @text_decorators.green() decorator."""
|
||||
"""Test @text_decorators.colour(name="green") decorator."""
|
||||
class TestClass:
|
||||
@text_decorators.green()
|
||||
@text_decorators.colour(name="green")
|
||||
def get_text(self):
|
||||
return "Success"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user