Issue Title: OperationalError: no such table: missing_person in SQLite Database during Testing
Description:
During testing, the SQLite database is encountering an OperationalError indicating that the missing_person table does not exist. This error occurs when executing SQL commands that interact with this table, leading to failures in test cases.
Issue Title:
OperationalError: no such table: missing_person
in SQLite Database during TestingDescription:
During testing, the SQLite database is encountering an
OperationalError
indicating that themissing_person
table does not exist. This error occurs when executing SQL commands that interact with this table, leading to failures in test cases.Error Trace:
Test Cases Affected:
test_create_missing_person
test_retrieve_missing_person
test_delete_missing_person
test_index
Steps to Reproduce:
missing_person
table.sqlite3.OperationalError
indicating that the table does not exist.Expected Behavior:
The
missing_person
table should be present in the SQLite database, allowing the tests to execute SQL commands without encountering errors.Actual Behavior:
The
missing_person
table is missing, causing SQL operations to fail and resulting in test failures.Possible Causes:
Suggested Solutions:
missing_person
table is correctly defined in the SQLAlchemy models.db.create_all()
is called in the test setup if using an in-memory SQLite database.