| Total Complexity | 1 |
| Total Lines | 8 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | from pathlib import Path, PurePath |
||
|
|
|||
| 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 |