diff options
author | Daniel Kutik <daniel.kutik@lavawerk.com> | 2022-11-28 11:36:01 +0100 |
---|---|---|
committer | Daniel Kutik <daniel.kutik@lavawerk.com> | 2022-11-28 13:00:34 +0000 |
commit | 35af2f8dafeb57e1a948ea8c168301bb16d2b5be (patch) | |
tree | 82f2e8e26b1ead3e54c2ab7ecc0936ab172c1eaa /tests/test_git_command.py | |
parent | e287fa760bb783a54a0299998cfba585356868fc (diff) | |
download | git-repo-35af2f8dafeb57e1a948ea8c168301bb16d2b5be.tar.gz |
Fixed wrapper related warnings in tests
Multiple "Could not find reference" warnings in test_wrapper.py
and test_git_command.py resolved.
Test: tox
Signed-off-by: Daniel Kutik <daniel.kutik@lavawerk.com>
Change-Id: Ic254c378bbdae6bc3f8f29682ababb37db76adfe
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/353235
Reviewed-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'tests/test_git_command.py')
-rw-r--r-- | tests/test_git_command.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_git_command.py b/tests/test_git_command.py index ff0d395d..96408a23 100644 --- a/tests/test_git_command.py +++ b/tests/test_git_command.py | |||
@@ -117,7 +117,8 @@ class GitRequireTests(unittest.TestCase): | |||
117 | """Test the git_require helper.""" | 117 | """Test the git_require helper.""" |
118 | 118 | ||
119 | def setUp(self): | 119 | def setUp(self): |
120 | ver = wrapper.GitVersion(1, 2, 3, 4) | 120 | self.wrapper = wrapper.Wrapper() |
121 | ver = self.wrapper.GitVersion(1, 2, 3, 4) | ||
121 | mock.patch.object(git_command.git, 'version_tuple', return_value=ver).start() | 122 | mock.patch.object(git_command.git, 'version_tuple', return_value=ver).start() |
122 | 123 | ||
123 | def tearDown(self): | 124 | def tearDown(self): |