Passed
Push — main ( bfa577...eb6882 )
by Douglas
04:37
created

mandos.model.Search.find_all()   B

Complexity

Conditions 6

Size

Total Lines 25
Code Lines 14

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 6
eloc 14
nop 2
dl 0
loc 25
rs 8.6666
c 0
b 0
f 0
1
from __future__ import annotations
0 ignored issues
show
introduced by
Missing module docstring
Loading history...
2
3
from pathlib import Path
4
from typing import Union
5
6
from pocketutils.core.dot_dict import NestedDotDict
0 ignored issues
show
introduced by
Unable to import 'pocketutils.core.dot_dict'
Loading history...
7
8
9
class CompoundNotFoundError(LookupError):
0 ignored issues
show
Documentation introduced by
Empty class docstring
Loading history...
10
    """"""
11
12
13
class MandosResources:
0 ignored issues
show
introduced by
Missing class docstring
Loading history...
14
    @classmethod
15
    def path(cls, *nodes: Union[Path, str]) -> Path:
16
        """Gets a path of a test resource file under resources/."""
17
        return Path(Path(__file__).parent, "resources", *nodes)
18
19
    @classmethod
20
    def json(cls, *nodes: Union[Path, str]) -> NestedDotDict:
0 ignored issues
show
introduced by
Missing function or method docstring
Loading history...
21
        return NestedDotDict.read_json(Path(Path(__file__).parent, "resources", *nodes))
22
23
24
__all__ = ["CompoundNotFoundError", "MandosResources"]
25