Skip to content

Commit 37861b0

Browse files
committed
tests(url,sync[hg]) Set mercurial configuration
1 parent 6413a7f commit 37861b0

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

tests/sync/test_hg.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@
1414
pytestmark = pytest.mark.skip(reason="hg is not available")
1515

1616

17+
@pytest.fixture(autouse=True)
18+
def set_hgconfig(
19+
set_hgconfig: pathlib.Path,
20+
) -> pathlib.Path:
21+
"""Set mercurial configuration."""
22+
return set_hgconfig
23+
24+
1725
def test_hg_sync(
1826
tmp_path: pathlib.Path,
1927
projects_path: pathlib.Path,

tests/url/test_hg.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Tests for mercurial URL module."""
22

3+
import pathlib
34
import typing
45

56
import pytest
@@ -9,6 +10,14 @@
910
from libvcs.url.hg import DEFAULT_RULES, PIP_DEFAULT_RULES, HgBaseURL, HgURL
1011

1112

13+
@pytest.fixture(autouse=True)
14+
def set_hgconfig(
15+
set_hgconfig: pathlib.Path,
16+
) -> pathlib.Path:
17+
"""Set mercurial configuration."""
18+
return set_hgconfig
19+
20+
1221
class HgURLFixture(typing.NamedTuple):
1322
"""Test fixture for HgURL."""
1423

0 commit comments

Comments
 (0)