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 37861b0

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

File tree

Expand file treeCollapse file tree

2 files changed

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

2 files changed

+17
-0
lines changed

‎tests/sync/test_hg.py

Copy file name to clipboardExpand all lines: tests/sync/test_hg.py
+8Lines 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

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