Implement dose tracking functionality and enhance CSV migration
- Added a new migration script to introduce dose tracking columns in the CSV. - Updated DataManager to handle new dose tracking columns and methods for adding doses. - Enhanced MedTrackerApp to support dose entry and display for each medicine. - Modified UIManager to create a scrollable input frame with dose tracking elements. - Implemented tests for delete functionality, dose tracking, edit functionality, and scrollable input. - Updated existing tests to ensure compatibility with the new CSV format and dose tracking features.
This commit is contained in:
@@ -39,7 +39,8 @@ class TestDataManager:
|
||||
headers = next(reader)
|
||||
expected_headers = [
|
||||
"date", "depression", "anxiety", "sleep", "appetite",
|
||||
"bupropion", "hydroxyzine", "gabapentin", "propranolol", "note"
|
||||
"bupropion", "bupropion_doses", "hydroxyzine", "hydroxyzine_doses",
|
||||
"gabapentin", "gabapentin_doses", "propranolol", "propranolol_doses", "note"
|
||||
]
|
||||
assert headers == expected_headers
|
||||
|
||||
|
||||
Reference in New Issue
Block a user