diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_GitRepository.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_GitRepository.py b/tests/test_GitRepository.py index 5b9fc92..0e833b5 100644 --- a/tests/test_GitRepository.py +++ b/tests/test_GitRepository.py @@ -373,6 +373,16 @@ def test_get_commits(): True >>> len(repo.get_commits(num=1)) == 1 True + >>> commits2 = repo.get_commits(since='HEAD~1') + >>> len(commits2) == 1 + True + >>> commits2[0] == commits[0] + True + >>> commits2 = repo.get_commits(until='HEAD~1') + >>> len(commits2) == 1 + True + >>> commits2[0] == commits[-1] + True >>> repo.get_commits(paths=['foo', 'bar']) [] >>> repo.get_commits(paths=['testfile']) == commits |