Task Module¶
test_task.py
This script is dedicated to test all the functionalities from task.py file.
- tests.test_task.test_format_date() None ¶
Check that the format_date function returns a string corresponding to the date object indicated
- tests.test_task.test_invalid_task_assignee() None ¶
Check that the Task object raises an error when initialized or modified with an invalid assignee list
- tests.test_task.test_invalid_task_categories() None ¶
Check that the Task object raises an error when initialized or modified with an invalid categories list
- tests.test_task.test_invalid_task_desciption() None ¶
Check that the Task object raises an error when initialized or modified with an empty description
- tests.test_task.test_invalid_task_due_date() None ¶
Check that the Task object raises an error when initialized or modified with a past due date
- tests.test_task.test_invalid_task_name() None ¶
Check that the Task object raises an error when initialized or modified with an empty name
- tests.test_task.test_invalid_task_priority() None ¶
Check that the Task object raises an error when initialized or modified with an invalid priority
- tests.test_task.test_invalid_task_status() None ¶
Check that the Task object raises an error when initialized or modified with an invalid status
- tests.test_task.test_parse_date() None ¶
Check that the parse_date function returns a datetime object corresponding to the date string indicated
- tests.test_task.test_task_initialization() None ¶
Check that the Task object is initialized with the correct attributes
- tests.test_task.test_task_modification() None ¶
Check that the Task object attributes can be modified