File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Original file line number Diff line number Diff line change 8
8
from libvcs import exc
9
9
from libvcs ._internal .run import run
10
10
from libvcs ._internal .shortcuts import create_project
11
+ from libvcs .pytest_plugin import CreateRepoPytestFixtureFn
11
12
from libvcs .sync .hg import HgSync
12
13
13
14
if not shutil .which ("hg" ):
14
15
pytestmark = pytest .mark .skip (reason = "hg is not available" )
15
16
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" )
17
29
def test_hg_sync (
18
30
tmp_path : pathlib .Path ,
19
31
projects_path : pathlib .Path ,
You can’t perform that action at this time.
0 commit comments