-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_basic_colors.py
More file actions
29 lines (25 loc) · 858 Bytes
/
test_basic_colors.py
File metadata and controls
29 lines (25 loc) · 858 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from basic_colors import *
def test_colors():
print(f'{BRed}C{BGreen}o{BYellow}l{BBlue}o{BPurple}r{BCyan}s{NC} test!')
print()
def test_print_functions():
print_info("This is an info message.")
print_warning("This is a warning message.")
print_success("This is a success message.")
print_error("This is an error message.", False)
print()
def test_verbose_print():
set_verbose(False)
print_info("Verbose: " + Blue + str(is_verbose_on()) + NC)
verbose_print("This is a non-verbose message.")
set_verbose(True)
print_info("Verbose: " + Blue + str(is_verbose_on()) + NC)
verbose_print("This is a verbose message.", Purple)
print()
if __name__ == "__main__":
test_colors()
enable_icons(True)
test_print_functions()
enable_icons(False)
test_print_functions()
test_verbose_print()