mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-22 17:48:09 +00:00
Merge pull request #931 from jcasimir:fix-backup-scheduler-test
Fix backup scheduler test to match actual defaults
This commit is contained in:
commit
634f4a75a1
1 changed files with 3 additions and 2 deletions
|
|
@ -765,11 +765,12 @@ class BackupSchedulerTestCase(TestCase):
|
|||
|
||||
settings = scheduler.get_schedule_settings()
|
||||
|
||||
self.assertEqual(settings['enabled'], False)
|
||||
# These should match the DEFAULTS in scheduler.py
|
||||
self.assertEqual(settings['enabled'], True)
|
||||
self.assertEqual(settings['frequency'], 'daily')
|
||||
self.assertEqual(settings['time'], '03:00')
|
||||
self.assertEqual(settings['day_of_week'], 0)
|
||||
self.assertEqual(settings['retention_count'], 0)
|
||||
self.assertEqual(settings['retention_count'], 3)
|
||||
self.assertEqual(settings['cron_expression'], '')
|
||||
|
||||
def test_update_schedule_settings_stores_values(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue