import pathlib
TEST_DIR = pathlib.Path(__file__).parent
def relpath(*parts):
return TEST_DIR / pathlib.Path(*parts)