memegen.services.font.FontService.all()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 3
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 3
cts 3
cp 1
crap 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