@@ -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