The Task Manager is a simple command-line application for managing tasks. It allows users to add, view, edit, save, load and remove tasks through a console interface. This project demonstrates basic operations with task management and includes unit tests using both unittest and pytest.
- Add a New Task: Allows the user to enter a task title and description, which are then added to the task list.
- View All Tasks: Displays all tasks with their titles and descriptions.
- Remove a Task: Enables the user to remove a task by specifying its number in the list.
- Exit the Program: Ends the program execution.
- Edit a Task: Enables the user to edit a task which is already created.
- Save & Load: Enables the user to Save tasks and Load it from directory.
-
Clone the repository:
git clone https://github.com/Nabis1/TaskManager.git
-
To run the application, execute the following command:
python main_program/task_manager.py
- To run the unit tests with unittest, execute the following command:
python -m unittest discover -s tests_unittest
- To run the tests with pytest, execute the following command:
pytest test_pytest
main_program/task_manager.py This file contains the main implementation of the Task Manager with the following functions:
- main_menu(): Displays the main menu and handles user choices.
- add_task(): Adds a new task to the list.
- view_tasks(): Displays all tasks.
- remove_task(): Removes a task by its number.
- edit_task(): Edit created tasks.
- save_tasks(): Save created tasks.
- load_tasks(): Load tasks from directory.
Contains tests for the Task Manager using pytest. It verifies the functionality of adding, viewing, and removing tasks.
- tests_pytest/test_pytest_task_manager.py
Contains tests for the Task Manager using unittest. It also verifies the functionality of adding, viewing, and removing tasks.
- tests_unittest/test_unittest_task_manager.py