-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
30 lines (18 loc) · 762 Bytes
/
Copy pathtest.py
File metadata and controls
30 lines (18 loc) · 762 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
from commands.command_controller import *
from database.database import *
from operations.users import *
from operations.todo_lists import *
from operations.todo_items import *
from operations.auth import *
session = create_session()
controller = CommandController()
user = session.query(User).filter_by(username="test password").first()
controller.execute(Login(session, "test password", "123456"))
print(controller.check_success())
print(controller.get_message())
# CREATE NEW USER - SUCCESS
# controller.execute(CreateNewUser(session, "test password", "test password", "123456", "123456"))
# EDIT USERNAME - SUCCESS
# controller.execute(EditUsername(session, user, "test2"))
# DELETE USER - SUCCESS
# controller.execute(DeleteUser(session, user))