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 d609a70

Browse filesBrowse files
committed
refactor!(pytest plugin[{hg,git}config]) Remove set_home from fixture
1 parent 58a9247 commit d609a70
Copy full SHA for d609a70

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎src/libvcs/pytest_plugin.py

Copy file name to clipboardExpand all lines: src/libvcs/pytest_plugin.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def set_home(
110110

111111
@pytest.fixture
112112
@skip_if_git_missing
113-
def gitconfig(user_path: pathlib.Path, set_home: pathlib.Path) -> pathlib.Path:
113+
def gitconfig(user_path: pathlib.Path) -> pathlib.Path:
114114
"""Return git configuration, pytest fixture."""
115115
gitconfig = user_path / ".gitconfig"
116116
user_email = "libvcs@git-pull.com"
@@ -145,7 +145,7 @@ def gitconfig(user_path: pathlib.Path, set_home: pathlib.Path) -> pathlib.Path:
145145

146146
@pytest.fixture
147147
@skip_if_hg_missing
148-
def hgconfig(user_path: pathlib.Path, set_home: pathlib.Path) -> pathlib.Path:
148+
def hgconfig(user_path: pathlib.Path) -> pathlib.Path:
149149
"""Return Mercurial configuration, pytest fixture."""
150150
hgrc = user_path / ".hgrc"
151151
hgrc.write_text(

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.