diff options
Diffstat (limited to 'testing/test_git.py')
-rw-r--r-- | testing/test_git.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/testing/test_git.py b/testing/test_git.py index 661a5ee..105a9e0 100644 --- a/testing/test_git.py +++ b/testing/test_git.py @@ -15,6 +15,7 @@ from unittest.mock import patch import pytest +from .conftest import DebugMode from .wd_wrapper import WorkDir from setuptools_scm import Configuration from setuptools_scm import format_version @@ -31,14 +32,16 @@ pytestmark = pytest.mark.skipif( ) -@pytest.fixture -def wd(wd: WorkDir, monkeypatch: pytest.MonkeyPatch) -> WorkDir: +@pytest.fixture(name="wd") +def wd(wd: WorkDir, monkeypatch: pytest.MonkeyPatch, debug_mode: DebugMode) -> WorkDir: + debug_mode.disable() monkeypatch.delenv("HOME", raising=False) wd("git init") wd("git config user.email test@example.com") wd('git config user.name "a test"') wd.add_command = "git add ." wd.commit_command = "git commit -m test-{reason}" + debug_mode.enable() return wd |