From 35af2f8dafeb57e1a948ea8c168301bb16d2b5be Mon Sep 17 00:00:00 2001 From: Daniel Kutik Date: Mon, 28 Nov 2022 11:36:01 +0100 Subject: 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 Change-Id: Ic254c378bbdae6bc3f8f29682ababb37db76adfe Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/353235 Reviewed-by: Mike Frysinger --- tests/test_git_command.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/test_git_command.py') 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): """Test the git_require helper.""" def setUp(self): - ver = wrapper.GitVersion(1, 2, 3, 4) + self.wrapper = wrapper.Wrapper() + ver = self.wrapper.GitVersion(1, 2, 3, 4) mock.patch.object(git_command.git, 'version_tuple', return_value=ver).start() def tearDown(self): -- cgit v1.2.3-54-g00ecf