diff options
Diffstat (limited to 'test/git')
-rw-r--r-- | test/git/test_commit.py | 3 | ||||
-rw-r--r-- | test/git/test_remote.py | 1 | ||||
-rw-r--r-- | test/git/test_repo.py | 3 | ||||
-rw-r--r-- | test/git/test_tag.py | 1 |
4 files changed, 8 insertions, 0 deletions
diff --git a/test/git/test_commit.py b/test/git/test_commit.py index abe16dfb..3d7feb6d 100644 --- a/test/git/test_commit.py +++ b/test/git/test_commit.py @@ -67,6 +67,9 @@ class TestCommit(object): def test_count(self): assert self.repo.tag('0.1.5').commit.count( ) == 141 + + def test_list(self): + assert isinstance(Commit.list_items(self.repo, '0.1.5', max_count=5)['5117c9c8a4d3af19a9958677e45cda9269de1541'], Commit) def test_str(self): commit = Commit(self.repo, id='abc') diff --git a/test/git/test_remote.py b/test/git/test_remote.py index 8c0177fd..4cbb0b7b 100644 --- a/test/git/test_remote.py +++ b/test/git/test_remote.py @@ -68,6 +68,7 @@ class TestRemote(TestCase): assert num_remotes == len(remote_set) origin = self.repo.remote('origin') + assert origin == self.repo.remotes.origin def test_creation_and_removal(self): new_name = "test_new_one" diff --git a/test/git/test_repo.py b/test/git/test_repo.py index 197a29cb..f9d81c69 100644 --- a/test/git/test_repo.py +++ b/test/git/test_repo.py @@ -39,6 +39,9 @@ class TestRepo(TestCase): assert head.name assert isinstance(head.commit,Commit) # END for each head + + assert isinstance(self.repo.heads.master, Head) + assert isinstance(self.repo.heads['master'], Head) @patch_object(Git, '_call_process') def test_commits(self, git): diff --git a/test/git/test_tag.py b/test/git/test_tag.py index 8f12bf11..9641e0ac 100644 --- a/test/git/test_tag.py +++ b/test/git/test_tag.py @@ -30,5 +30,6 @@ class TestTag(object): # END if we have a tag object # END for tag in repo-tags assert tag_object_refs + assert isinstance(self.repo.tags['0.1.5'], TagReference) |