memegen.services.font   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A FontService.find() 0 2 1
A FontService.all() 0 4 1
A FontService.__init__() 0 3 1
1 1
from ._base import Service
2
3 1
4
class FontService(Service):
5
6 1
    def __init__(self, font_store, **kwargs):
7
        super().__init__(**kwargs)
8
        self.font_store = font_store
9 1
10
    def all(self):
11 1
        """Get all fonts."""
12 1
        fonts = self.font_store.all()
13 1
        return fonts
14
15 1
    def find(self, key):
16
        return self.font_store.find(key)
17