8000 That should wrap up any tests for the git module. · jsullivanlive/github3.py@2293028 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2293028

Browse files
committed
That should wrap up any tests for the git module.
1 parent d07fb52 commit 2293028

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_git.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,15 @@ def test_tree_and_hash(self):
4343
hashes = tree.tree # Odd access, right?
4444
for h in hashes:
4545
expect(h).isinstance(Hash)
46+
self.assertAreNotNone(h, 'mode', 'path', 'sha', 'size', 'type',
47+
'url')
4648

4749
def test_refs(self):
4850
r = self.todor
4951
ref = r.ref('heads/development')
5052
expect(ref).isinstance(Reference)
53+
self.assertAreNotNone(ref, 'object', 'ref')
54+
55+
with expect.raises(github3.GitHubError):
56+
ref.delete()
57+
ref.update('31e862095dffa60744f1ce16a431ea040381f053')

0 commit comments

Comments
 (0)
0