Skip to content

Commit

Permalink
test,fix: ignore git env, tested in darkgraylib
Browse files Browse the repository at this point in the history
  • Loading branch information
akaihola committed Aug 8, 2024
1 parent 0321416 commit a9a7a52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/darker/tests/test_git.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit a9a7a52

Please sign in to comment.