diff options
| author | Tamas Szabo <szabtam@gmail.com> | 2020-10-05 01:19:55 +0300 |
|---|---|---|
| committer | Tamas Szabo <szabtam@gmail.com> | 2020-10-05 01:19:55 +0300 |
| commit | c92b7608c3f7b40e991a70388e128a20eed42eb8 (patch) | |
| tree | f9670d973ff43aaffb31b790df7bd79649a86b1d /tests/unit/test_hooks.py | |
| parent | e94d2e3192ce6f2e92309a0706227932e5ef018c (diff) | |
| download | isort-c92b7608c3f7b40e991a70388e128a20eed42eb8.tar.gz | |
Fix for test_hooks.py
Mock.call_args.args can be used only on Python 3.8, fails on 3.6
Diffstat (limited to 'tests/unit/test_hooks.py')
| -rw-r--r-- | tests/unit/test_hooks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/test_hooks.py b/tests/unit/test_hooks.py index ddaff0e2..2757f414 100644 --- a/tests/unit/test_hooks.py +++ b/tests/unit/test_hooks.py @@ -51,7 +51,7 @@ def test_git_hook(src_dir): with patch("isort.api.sort_file", MagicMock(return_value=False)) as api_mock: hooks.git_hook(modify=True) api_mock.assert_called_once() - assert api_mock.call_args.args[0] == mock_main_py.return_value[0] + assert api_mock.call_args[0][0] == mock_main_py.return_value[0] # Test with sorted file returned from git and modify=False with patch("isort.hooks.get_lines", mock_main_py): |
