diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2012-07-02 11:21:03 +0300 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2012-07-27 13:45:51 +0200 |
commit | 32f725f9e27165c25ef11d61952f22eb29a1f12d (patch) | |
tree | c26c52fe29a3123491a94e93a25e43776e86b69e /tests | |
parent | 7f9776f85055fd80549eb164aa8fffa4e0e5535f (diff) |
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 <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_GitRepository.py | 4 |
1 files changed, 4 insertions, 0 deletions
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(): |