Add comprehensive tests for dose tracking functionality
- Implemented `test_dose_parsing_simple.py` to validate the dose parsing workflow. - Created `test_dose_save.py` to verify the saving functionality of dose tracking. - Added `test_dose_save_simple.py` for programmatic testing of dose saving without UI interaction. - Developed `test_final_workflow.py` to test the complete dose tracking workflow, ensuring doses are preserved during edits. - Enhanced `conftest.py` with a mock pathology manager for testing. - Updated `test_data_manager.py` to include pathology manager in DataManager tests and ensure compatibility with new features.
This commit is contained in:
44
pathologies.json
Normal file
44
pathologies.json
Normal file
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"pathologies": [
|
||||
{
|
||||
"key": "depression",
|
||||
"display_name": "Depression",
|
||||
"scale_info": "0:good, 10:bad",
|
||||
"color": "#FF6B6B",
|
||||
"default_enabled": true,
|
||||
"scale_min": 0,
|
||||
"scale_max": 10,
|
||||
"scale_orientation": "normal"
|
||||
},
|
||||
{
|
||||
"key": "anxiety",
|
||||
"display_name": "Anxiety",
|
||||
"scale_info": "0:good, 10:bad",
|
||||
"color": "#FFA726",
|
||||
"default_enabled": true,
|
||||
"scale_min": 0,
|
||||
"scale_max": 10,
|
||||
"scale_orientation": "normal"
|
||||
},
|
||||
{
|
||||
"key": "sleep",
|
||||
"display_name": "Sleep Quality",
|
||||
"scale_info": "0:bad, 10:good",
|
||||
"color": "#66BB6A",
|
||||
"default_enabled": true,
|
||||
"scale_min": 0,
|
||||
"scale_max": 10,
|
||||
"scale_orientation": "inverted"
|
||||
},
|
||||
{
|
||||
"key": "appetite",
|
||||
"display_name": "Appetite",
|
||||
"scale_info": "0:bad, 10:good",
|
||||
"color": "#42A5F5",
|
||||
"default_enabled": true,
|
||||
"scale_min": 0,
|
||||
"scale_max": 10,
|
||||
"scale_orientation": "inverted"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user