Streamlit Module

test_streamlit.py

This script is dedicated to test all the functionalities from test_streamlit.py file, our graphical interface.

tests.test_streamlit.task_manager() TaskManager

Fixture to create and return a new TaskManager instance.

tests.test_streamlit.test_display_complete_task(task_manager: TaskManager) None

Test the main interface of the Task Manager for the ‘Complete Task’ option.

tests.test_streamlit.test_display_create_task(task_manager: TaskManager) None

Test the main interface of the Task Manager for ‘Create Task’ option.

tests.test_streamlit.test_display_delete_task(task_manager: TaskManager) None

Test the main interface of the Task Manager for the ‘Delete Task’ option.

tests.test_streamlit.test_display_home(task_manager: TaskManager) None

Test the main interface of the Task Manager for ‘Home’ option.

tests.test_streamlit.test_display_task_created_successfully(task_manager: TaskManager) None

This test simulates the user selecting the ‘Create Task’ option from the sidebar,filling out the task details, clicking the ‘Submit’ button, and checks if the “Task created successfully” message is displayed.

tests.test_streamlit.test_display_view_tasks(task_manager: TaskManager) None

Test the main interface of the Task Manager for the ‘View Tasks’ option.