Files
dev-gpt/test/test_strings.py
Florian Hönicke 0339b24353 Revert "♻ refactor: rename package"
This reverts commit 55796828dd.
2023-04-24 23:20:09 +02:00

11 lines
334 B
Python

from src.apis.jina_cloud import clean_color_codes
def test_clean_color_codes():
color_start = f"\033[{31}m"
reset = "\033[0m"
bold_start = "\033[1m"
color = f"{bold_start}{color_start}test{reset}"
cleaned = clean_color_codes(color)
print('with color codes:', color)
print('without color codes:', cleaned)