Dispatcharr/apps/backups
Jim McBride 70e574e25a
Add tests for cron expression functionality
Added comprehensive test coverage for cron expression support:

New tests in BackupSchedulerTestCase:
- test_cron_expression_stores_value: Verify cron_expression persists correctly
- test_cron_expression_creates_correct_schedule: Verify CrontabSchedule creation from cron
- test_cron_expression_invalid_format: Verify validation rejects malformed expressions
- test_cron_expression_empty_uses_simple_mode: Verify fallback to frequency/time mode
- test_cron_expression_overrides_simple_settings: Verify cron takes precedence

Updated existing tests to include cron_expression field:
- test_get_schedule_settings_defaults: Now checks cron_expression default
- test_get_schedule_success: Added cron_expression to mock response
- test_update_schedule_success: Added cron_expression to mock response

All tests verify the new cron functionality works correctly alongside
existing simple scheduling mode.
2025-12-09 08:54:23 -06:00
..
migrations Feature: Automated configuration backups with scheduling 2025-11-26 21:11:13 -06:00
__init__.py Feature: Automated configuration backups with scheduling 2025-11-26 21:11:13 -06:00
api_urls.py Feature: Automated configuration backups with scheduling 2025-11-26 21:11:13 -06:00
api_views.py Feature: Automated configuration backups with scheduling 2025-11-26 21:11:13 -06:00
apps.py Feature: Automated configuration backups with scheduling 2025-11-26 21:11:13 -06:00
models.py Feature: Automated configuration backups with scheduling 2025-11-26 21:11:13 -06:00
scheduler.py Add custom cron expression support for backup scheduling 2025-12-09 07:55:47 -06:00
services.py Fix backup timestamp display to use UTC timezone 2025-12-09 08:16:04 -06:00
tasks.py Feature: Automated configuration backups with scheduling 2025-11-26 21:11:13 -06:00
tests.py Add tests for cron expression functionality 2025-12-09 08:54:23 -06:00