We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af15e3f commit e6bcfbaCopy full SHA for e6bcfba
tests/sync/test_hg.py
@@ -8,12 +8,24 @@
8
from libvcs import exc
9
from libvcs._internal.run import run
10
from libvcs._internal.shortcuts import create_project
11
+from libvcs.pytest_plugin import CreateRepoPytestFixtureFn
12
from libvcs.sync.hg import HgSync
13
14
if not shutil.which("hg"):
15
pytestmark = pytest.mark.skip(reason="hg is not available")
16
17
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")
29
def test_hg_sync(
30
tmp_path: pathlib.Path,
31
projects_path: pathlib.Path,
0 commit comments