from pathlib import Path from many_repos.clone import _construct_path def test_correct_construct_path(test_repo, many_repos_config): assert _construct_path(test_repo, many_repos_config) == ( Path(many_repos_config.output_dir) / test_repo.vcs / test_repo.namespace / test_repo.name).resolve()