Skip to content

Commit 02af3e4

Browse files
committed
!squash hg test
1 parent 417081b commit 02af3e4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/libvcs/pytest_plugin.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -653,11 +653,15 @@ def git_repo(
653653

654654

655655
@pytest.fixture
656-
def hg_repo(projects_path: pathlib.Path, hg_remote_repo: pathlib.Path) -> HgSync:
656+
def hg_repo(
657+
remote_repos_path: pathlib.Path,
658+
projects_path: pathlib.Path,
659+
hg_remote_repo: pathlib.Path,
660+
) -> HgSync:
657661
"""Pre-made hg clone of remote repo checked out to user's projects dir."""
658662
remote_repo_name = unique_repo_name(remote_repos_path=projects_path)
659663
new_checkout_path = projects_path / remote_repo_name
660-
master_copy = projects_path / "hg_repo"
664+
master_copy = remote_repos_path / "hg_repo"
661665

662666
if master_copy.exists():
663667
shutil.copytree(master_copy, new_checkout_path)

0 commit comments

Comments
 (0)