mirror of
https://github.com/aljazceru/dev-gpt.git
synced 2025-12-19 22:54:21 +01:00
🧪4️⃣ test: level 4 gpt fix
This commit is contained in:
11
test/unit/test_strings.py
Normal file
11
test/unit/test_strings.py
Normal file
@@ -0,0 +1,11 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user