mine.models.config   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 11
dl 0
loc 18
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A ProgramConfig.__init__() 0 4 1
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