@@ -37,12 +37,12 @@ def hgrc_default(monkeypatch: pytest.MonkeyPatch, user_path: pathlib.Path):
3737
3838
3939@pytest .fixture
40- def hg_remote (parentdir ):
40+ def hg_remote (repos_path ):
4141 """Create a git repo with 1 commit, used as a remote."""
4242 name = "test_hg_repo"
43- repo_path = parentdir / name
43+ repo_path = repos_path / name
4444
45- run (["hg" , "init" , name ], cwd = parentdir )
45+ run (["hg" , "init" , name ], cwd = repos_path )
4646
4747 testfile_filename = "testfile.test"
4848
@@ -53,13 +53,13 @@ def hg_remote(parentdir):
5353 return repo_path
5454
5555
56- def test_repo_mercurial (tmp_path : pathlib .Path , parentdir , hg_remote ):
56+ def test_repo_mercurial (tmp_path : pathlib .Path , repos_path , hg_remote ):
5757 repo_name = "my_mercurial_project"
5858
5959 mercurial_repo = create_repo_from_pip_url (
6060 ** {
6161 "pip_url" : f"hg+file://{ hg_remote } " ,
62- "repo_dir" : parentdir / repo_name ,
62+ "repo_dir" : repos_path / repo_name ,
6363 }
6464 )
6565
@@ -68,7 +68,7 @@ def test_repo_mercurial(tmp_path: pathlib.Path, parentdir, hg_remote):
6868 mercurial_repo .update_repo ()
6969
7070 test_repo_revision = run (
71- ["hg" , "parents" , "--template={rev}" ], cwd = parentdir / repo_name
71+ ["hg" , "parents" , "--template={rev}" ], cwd = repos_path / repo_name
7272 )
7373
7474 assert mercurial_repo .get_revision () == test_repo_revision
0 commit comments