8000 Finish Branch testing. · jsullivanlive/github3.py@dcad332 · GitHub
[go: up one dir, main page]

Skip to content < 8000 react-partial partial-name="keyboard-shortcuts-dialog" data-ssr="false" data-attempted-ssr="false" data-react-profiling="false" >

Commit dcad332

Browse files
committed
Finish Branch testing.
Start Contents.
1 parent 7d6b787 commit dcad332

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

tests/test_repos.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,3 +271,23 @@ def test_with_auth(self):
271271
expect(repo.remove_collaborator('jcordasc')).is_True()
272272
except github3.GitHubError:
273273
pass
274+
275+
276+
class TestBranch(base.BaseTest):
277+
def __init__(self, methodName='runTest'):
278+
super(TestBranch, self).__init__(methodName)
279+
repo = self.g.repository(self.sigm, self.todo)
280+
self.branch = repo.branch('master')
281+
282+
def test_commit(self):
283+
expect(self.branch.commit).isinstance(Commit)
284+
285+
def test_links(self):
286+
expect(self.branch.links).isinstance(dict)
287+
288+
def test_name(self):
289+
expect(self.branch.name) == 'master'
290+
291+
292+
class TestContents(base.BaseTest):
293+
pass

0 commit comments

Comments
 (0)
0