DB Module

test_db.py

This script is dedicated to test all the functionalities from db.py file.

tests.test_db.db_manager() SQLiteDB

Fixture to create and return a new SQlite instance.

tests.test_db.mock_db() None

Pytest fixture that mocks the ‘connect’ method of the SQLiteDB class.

tests.test_db.test_insert_data(db_manager: SQLiteDB)

Test if data can be inserted into the db.

tests.test_db.test_remove_task(db_manager: SQLiteDB)

Test if data can be inserted into the db.

tests.test_db.test_table_creation_and_existence(db_manager: SQLiteDB) None

Test if a table can be added to the db.