diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-07-13 05:37:54 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-07-13 05:37:54 +0000 |
commit | ed1e22b9d652ef3e01e56f227a359071f2a03b34 (patch) | |
tree | 50efa7d372c4750932e8b215b26294d19d99f34d /tests/test_info.py | |
parent | Adding upstream version 0.16.3. (diff) | |
download | gita-ed1e22b9d652ef3e01e56f227a359071f2a03b34.tar.xz gita-ed1e22b9d652ef3e01e56f227a359071f2a03b34.zip |
Adding upstream version 0.16.4.upstream/0.16.4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/test_info.py')
-rw-r--r-- | tests/test_info.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_info.py b/tests/test_info.py index c234d78..0af8a47 100644 --- a/tests/test_info.py +++ b/tests/test_info.py @@ -4,13 +4,14 @@ from unittest.mock import patch, MagicMock from gita import info -@patch('subprocess.run') +@patch("subprocess.run") def test_run_quiet_diff(mock_run): mock_return = MagicMock() mock_run.return_value = mock_return - got = info.run_quiet_diff(['--flags'], ['my', 'args']) + got = info.run_quiet_diff(["--flags"], ["my", "args"], "/a/b/c") mock_run.assert_called_once_with( - ['git', '--flags', 'diff', '--quiet', 'my', 'args'], + ["git", "--flags", "diff", "--quiet", "my", "args"], stderr=subprocess.DEVNULL, + cwd="/a/b/c", ) assert got == mock_return.returncode |