mine.models.config.ProgramConfig.__init__()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 4
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 4
nop 3
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
"""Data structures for all settings."""
2
3 1
import yorm
4
5 1
from .application import Applications
6
from .computer import Computers
7 1
8 1
9
@yorm.attr(computers=Computers)
10
@yorm.attr(applications=Applications)
11 1
class ProgramConfig(yorm.types.AttributeDictionary):
12
    """Dictionary of program configuration settings."""
13
14 1
    def __init__(self, applications=None, computers=None):
15 1
        super().__init__()
16 1
        self.applications = applications or Applications()
17
        self.computers = computers or Computers()
18