From a30f9e772cb8b4c48cca296bb3a7690c3e8ae418 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Mon, 6 May 2013 15:19:58 +0300 Subject: buildpackage: use get_commit_info() instead of get_subject() Utilize the get_commit_info() method of GitRepository instead of the deprecated get_subject(). Signed-off-by: Markus Lehtonen --- tests/05_test_detection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/05_test_detection.py') diff --git a/tests/05_test_detection.py b/tests/05_test_detection.py index 8ae5265..126a299 100644 --- a/tests/05_test_detection.py +++ b/tests/05_test_detection.py @@ -24,8 +24,8 @@ class MockGitRepository: def grep_log(self, regex, branch): return None - def get_subject(self, commit): - return self.subject + def get_commit_info(self, commit): + return {'subject': self.subject} class TestDetection(unittest.TestCase): def setUp(self): -- cgit v1.2.3