tests.model   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 8
rs 10
c 0
b 0
f 0
wmc 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A get_test_resource() 0 3 1
1
from pathlib import Path, PurePath
0 ignored issues
show
introduced by
Missing module docstring
Loading history...
2
from typing import Union
3
4
5
def get_test_resource(*nodes: Union[PurePath, str]) -> Path:
6
    """Gets a path of a test resource file under resources/."""
7
    return Path(Path(__file__).parent, "resources", *nodes)
8