diff options
author | Harmon <Harmon758@gmail.com> | 2020-02-16 17:44:22 -0600 |
---|---|---|
committer | Harmon <Harmon758@gmail.com> | 2020-02-16 17:44:22 -0600 |
commit | 99b6dffe9604f86f08c2b53bef4f8ab35bb565a1 (patch) | |
tree | 6a6dfbce3c91801ea46be5ae08c0747526ce6d2d /git/test/test_git.py | |
parent | 8a5a78b27ce1bcda6597b340d47a20efbac478d7 (diff) | |
download | gitpython-99b6dffe9604f86f08c2b53bef4f8ab35bb565a1.tar.gz |
Remove test.lib.asserts and use unittest.mock.patch directly
Diffstat (limited to 'git/test/test_git.py')
-rw-r--r-- | git/test/test_git.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/git/test/test_git.py b/git/test/test_git.py index 75e35ab7..060a4c3c 100644 --- a/git/test/test_git.py +++ b/git/test/test_git.py @@ -21,7 +21,6 @@ from git import ( from git.compat import is_darwin from git.test.lib import ( TestBase, - patch, fixture_path ) from git.test.lib import with_rw_directory @@ -43,7 +42,7 @@ class TestGit(TestBase): import gc gc.collect() - @patch.object(Git, 'execute') + @mock.patch.object(Git, 'execute') def test_call_process_calls_execute(self, git): git.return_value = '' self.git.version() @@ -90,7 +89,7 @@ class TestGit(TestBase): self.assertEqual("70c379b63ffa0795fdbfbc128e5a2818397b7ef8", self.git.hash_object(istream=fh, stdin=True)) - @patch.object(Git, 'execute') + @mock.patch.object(Git, 'execute') def test_it_ignores_false_kwargs(self, git): # this_should_not_be_ignored=False implies it *should* be ignored self.git.version(pass_this_kwarg=False) |