-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtest_note.py
More file actions
64 lines (46 loc) · 1.94 KB
/
test_note.py
File metadata and controls
64 lines (46 loc) · 1.94 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
from notes import Note, NotesBook
from constants import GREEN, RESET
from main import (
add_note,
show_notes,
add_tag,
delete_note,
change_tag,
delete_tag,
search_notes,
edit_note,
)
if __name__ == "__main__":
note_book = NotesBook()
print(GREEN + " створюємо нову нотатку" + RESET)
print(add_note("000", "If you don’t have "))
print(GREEN + " створюємо нову нотатку з #tag" + RESET)
print(add_note("first", "If you don’t have ", "#3"))
print(GREEN + " видаляємо нотатку" + RESET)
print(delete_note("first"))
print(GREEN + " створюємо нову нотатку з #tag" + RESET)
print(add_note("first", "If you don’t have ", "#3"))
print(GREEN + " створюємо нову нотатку з двома #tags" + RESET)
print(add_note("second", "If you don’t have ", "#3", "#5"))
print(GREEN + " додаємо #tags" + RESET)
print(add_tag("000", "#8"))
print(GREEN + " видаляємо #tags" + RESET)
print(delete_tag("000", "#8"))
print(GREEN + " додаємо #tags" + RESET)
print(add_tag("000", "#88"))
print(GREEN + " змінюємо #tags" + RESET)
print(change_tag("000", "#88", "#99"))
print(GREEN + " додаємо #tags" + RESET)
print(add_tag("000", "#88"))
print(GREEN + " шукаємо #tags" + RESET)
print(search_notes("3"))
print(GREEN + " видаляємо #tags" + RESET)
print(delete_tag("first", "#3"))
print(GREEN + " додаємо #tags" + RESET)
print(add_tag("first", "#888"))
print(GREEN + " міняємо content" + RESET)
print(edit_note("first", "kjhg kjhgf kjhgf 000 fgf"))
print(GREEN + " шукаємо #tags" + RESET)
print(search_notes("000"))
print(GREEN + " друкуємо всі notes" + RESET)
print(show_notes())