Passed
Push — develop ( 58c12a...6a842a )
by Dean
02:43
created

BackupMaintenanceIntervalOption

Complexity

Total Complexity 0

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%
Metric Value
dl 0
loc 11
ccs 9
cts 9
cp 1
wmc 0
1 1
from plugin.preferences.options.core.base import SchedulerOption
2 1
from plugin.preferences.options.o_sync.constants import INTERVAL_LABELS_BY_KEY
3 1
from plugin.sync.core.enums import SyncInterval
4
5 1
import logging
6
7 1
log = logging.getLogger(__name__)
8
9
10 1
class BackupMaintenanceIntervalOption(SchedulerOption):
0 ignored issues
show
Bug introduced by
The method on_plex_changed which was declared abstract in the super-class Option
was not overridden.

Methods which raise NotImplementedError should be overridden in concrete child classes.

Loading history...
11 1
    key = 'backup.interval'
12 1
    type = 'enum'
13
14 1
    choices = INTERVAL_LABELS_BY_KEY
15 1
    default = SyncInterval.D1
16 1
    scope = 'server'
17
18 1
    group = ('Backups',)
19 1
    label = 'Maintenance Interval'
20
    order = 10
21