🧪4️⃣ test: level 4 gpt fix

This commit is contained in:
Florian Hönicke
2023-05-03 00:01:02 +02:00
parent 0fdf5edd2c
commit 412c0a9403
9 changed files with 122 additions and 57 deletions

11
test/unit/test_strings.py Normal file
View 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)