for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
from pathlib import Path, PurePath
from typing import Union
def get_test_resource(*nodes: Union[PurePath, str]) -> Path:
"""Gets a path of a test resource file under resources/."""
return Path(Path(__file__).parent, "resources", *nodes)