Initial test refactoring

This commit is contained in:
nik012003
2022-08-01 23:59:32 +02:00
parent 5cfcfccc15
commit cb8b6e5b04
10 changed files with 427 additions and 379 deletions

17
tests/utils/colors.py Normal file
View File

@@ -0,0 +1,17 @@
pref = "\033["
reset = f"{pref}0m"
class colors:
black = "30m"
red = "31m"
green = "32m"
yellow = "33m"
blue = "34m"
magenta = "35m"
cyan = "36m"
white = "37m"
def puts(text, *args, color=colors.white, is_bold=False, **kwargs):
print(f'{pref}{1 if is_bold else 0};{color}' + text + reset, *args, **kwargs)
def sep(): puts("-----------------------------------", is_bold=True)