from src.dev import Dev
from src.project import Project
from src.task import Task
from time import time
from src.task_list import TaskList
from src.dev_list import DevList


def main_():
    """get all task_test"""

    # project_bosh = Project('Bosh')
    # dev1 = Dev('developerMitya@mail.ru', '111111', 'Oleg', 'Fomin', 22)\
    #
    # #
    # task2 = Task('second_task', 15, project=project_bosh)
    # dev1.add_task(task2)
    # print(dev1)

    #
    # task3 = Task('second_task', 5, executor=dev1)
    # tasklist = [task2, task3]
    # dev2 = Dev('developerMitya@bbmail.ru', '111111', 'Oleg', 'Fomin', 22, tasklist)
    # task4 = Task('fourth', 10)
    # # task_list = TaskList([task2, task3, task4])
    # # dev_list = DevList(dev1)
    # # dev_list.add_dev(dev2)
    # print(dev2.tasks)
    # print(dev2)
    # dev2.add_task(task4)
    # print(task4.uid)
    # uid
    # time.sleep(5)
    # dev2.show_all_dev_task()
    # dev2.show_to_do_task()



    # print(task2.show_full__info_task())
    # dev1.task_to_do.add_task(task2)
    # dev1.task_to_do.add_task(task3)
    # print(dev1.task_to_do)
    # print(dev1.task_to_do)
    # for u in dev1.task_to_do.tasks.values():
    #     print(u.name)
    # print(dev1)



    # print(task_list.get_all_task())
    """del_task_from_list(use get all task_test)"""
    # task_list.del_task(task2.uid)
    # print(task_list.get_all_task())
    """sort_task_list(use get all task_test)"""
    # print(task_list.sort_priority_task())
    """change task"""
    # task2.change_task(new_priority=5)
    # print(task2)
    """change password"""
    # print(dev1.password)
    # dev1.change_password('123123123')
    # print(dev1.password)
    # print(dev1)
    # dev2.change_email('aaa@mail.rrr')
    # dev2.add_task(task2)
    # print(dev2)
    # task2.change_task(task_executor=dev2)
    # print(task2)




# if __name__ == '__main__':
 #   main()
