We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0118e90 + abfb91f commit 96e2998Copy full SHA for 96e2998
tests/unit/test_hooks.py
@@ -11,7 +11,7 @@ def test_git_hook(src_dir):
11
# Ensure correct subprocess command is called
12
with patch("subprocess.run", MagicMock()) as run_mock:
13
hooks.git_hook()
14
- assert run_mock.called_once()
+ run_mock.assert_called_once()
15
assert run_mock.call_args[0][0] == [
16
"git",
17
"diff-index",
@@ -21,8 +21,9 @@ def test_git_hook(src_dir):
21
"HEAD",
22
]
23
24
+ with patch("subprocess.run", MagicMock()) as run_mock:
25
hooks.git_hook(lazy=True)
26
27
28
29
0 commit comments