From a9a7a52bf1c9d8ae06a3f0c54e8f9c5eb51a03ff Mon Sep 17 00:00:00 2001 From: Antti Kaihola <13725+akaihola@users.noreply.github.com> Date: Thu, 8 Aug 2024 22:36:53 +0300 Subject: [PATCH] test,fix: ignore git env, tested in darkgraylib --- src/darker/tests/test_git.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/darker/tests/test_git.py b/src/darker/tests/test_git.py index 6c9f84967..446897a44 100644 --- a/src/darker/tests/test_git.py +++ b/src/darker/tests/test_git.py @@ -7,7 +7,7 @@ from pathlib import Path from subprocess import DEVNULL, check_call # nosec from textwrap import dedent # nosec -from unittest.mock import patch +from unittest.mock import ANY, patch import pytest @@ -73,7 +73,7 @@ def test_git_exists_in_revision_git_call(retval, expect): cwd=".", check=False, stderr=DEVNULL, - env={"LC_ALL": "C", "PATH": os.environ["PATH"]}, + env=ANY, ) assert result == expect