Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e6bcfba

Browse filesBrowse files
committed
test(sync[hg]) Remote repository fixture
1 parent af15e3f commit e6bcfba
Copy full SHA for e6bcfba

File tree

Expand file treeCollapse file tree

1 file changed

+12
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+12
-0
lines changed

‎tests/sync/test_hg.py

Copy file name to clipboardExpand all lines: tests/sync/test_hg.py
+12Lines changed: 12 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.