diff --git a/tests/testutil.py b/tests/testutil.py index c021e21493e6d04aa804501ff42fd25dfec36bec..d0cfc6698da34f8374d5c57eb41be5db422d3d5e 100644 --- a/tests/testutil.py +++ b/tests/testutil.py @@ -98,8 +98,14 @@ class Transaction: class TestConfig: + TESTS_DIR = Path(__file__).parent + def __init__(self, repo_path=None): - self.repo_path = None if repo_path is None else Path(repo_path) + if repo_path is not None: + repo_path = Path(repo_path) + if not repo_path.is_absolute(): + repo_path = Path(self.TESTS_DIR, repo_path) + self.repo_path = repo_path def repository_path(self): return self.repo_path