From 32f725f9e27165c25ef11d61952f22eb29a1f12d Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Mon, 2 Jul 2012 11:21:03 +0300 Subject: GitRepository/get_commit_info: add committer info Add committer to the info returned by get_commit_info() method. Returns committer name, email and timestamp as a GitModifier object. Signed-off-by: Markus Lehtonen --- tests/test_GitRepository.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/test_GitRepository.py b/tests/test_GitRepository.py index b91be61..5a590ff 100644 --- a/tests/test_GitRepository.py +++ b/tests/test_GitRepository.py @@ -362,9 +362,13 @@ def test_get_commit_info(): 'foo' >>> '@' in info['author'].email True + >>> '@' in info['committer'].email + True >>> now = datetime.now() >>> (now - datetime.fromtimestamp(int(info['author'].date.split()[0]))).seconds < 10 True + >>> (now - datetime.fromtimestamp(int(info['committer'].date.split()[0]))).seconds < 10 + True """ def test_mirror_clone(): -- cgit v1.2.3