tests.get_test_resource()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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