Adding upstream version 0.10.9.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
c0f23aff1f
commit
a9c588f707
27 changed files with 1822 additions and 0 deletions
16
tests/test_info.py
Normal file
16
tests/test_info.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
import subprocess
|
||||
from unittest.mock import patch, MagicMock
|
||||
|
||||
from gita import info
|
||||
|
||||
|
||||
@patch('subprocess.run')
|
||||
def test_run_quiet_diff(mock_run):
|
||||
mock_return = MagicMock()
|
||||
mock_run.return_value = mock_return
|
||||
got = info.run_quiet_diff(['my', 'args'])
|
||||
mock_run.assert_called_once_with(
|
||||
['git', 'diff', '--quiet', 'my', 'args'],
|
||||
stderr=subprocess.DEVNULL,
|
||||
)
|
||||
assert got == mock_return.returncode
|
Loading…
Add table
Add a link
Reference in a new issue