mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-25 11:04:07 +00:00
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. |
||
|---|---|---|
| .. | ||
| migrations | ||
| __init__.py | ||
| api_urls.py | ||
| api_views.py | ||
| apps.py | ||
| models.py | ||
| scheduler.py | ||
| services.py | ||
| tasks.py | ||
| tests.py | ||