Skip to content

Commit e6bcfba

Browse files
committed
test(sync[hg]) Remote repository fixture
1 parent af15e3f commit e6bcfba

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/sync/test_hg.py

+12
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,24 @@
88
from libvcs import exc
99
from libvcs._internal.run import run
1010
from libvcs._internal.shortcuts import create_project
11+
from libvcs.pytest_plugin import CreateRepoPytestFixtureFn
1112
from libvcs.sync.hg import HgSync
1213

1314
if not shutil.which("hg"):
1415
pytestmark = pytest.mark.skip(reason="hg is not available")
1516

1617

18+
@pytest.fixture
19+
def hg_remote_repo(
20+
set_home: pathlib.Path,
21+
hgconfig: pathlib.Path,
22+
create_hg_remote_repo: CreateRepoPytestFixtureFn,
23+
) -> pathlib.Path:
24+
"""Create a remote hg repository."""
25+
return create_hg_remote_repo()
26+
27+
28+
@pytest.mark.usefixtures("set_home", "hgconfig")
1729
def test_hg_sync(
1830
tmp_path: pathlib.Path,
1931
projects_path: pathlib.Path,

0 commit comments

Comments
 (0)