Separated text formatting module and log module to 2 files and added a simple test for the formatting module.
This commit is contained in:
parent
56a74ec420
commit
1baac24427
3 changed files with 72 additions and 63 deletions
13
tests/text/test_format.py
Normal file
13
tests/text/test_format.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
from wobbl_tools.text.format import format_string
|
||||
from wobbl_tools.text import format
|
||||
|
||||
formats = list(format.color_ansi.keys())
|
||||
formats.remove("rs")
|
||||
formats.remove("reset")
|
||||
|
||||
print("\n\nIs this shit looking right?\n")
|
||||
|
||||
for format_name in formats:
|
||||
print(f"{format_name.title().replace("_", " ")} text: {format_string(f"§{format_name}Text")}")
|
Loading…
Add table
Add a link
Reference in a new issue