Skip to content

Commit d609a70

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libvcs/pytest_plugin.py

Lines 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)