8000 Further test GitHub.iter_repos · Web5design/github3.py@b5c4947 · GitHub
[go: up one dir, main page]

Skip to content

Commit b5c4947

Browse files
committed
Further test GitHub.iter_repos
1 parent da066a0 commit b5c4947

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_github.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,9 @@ def test_iter_repos(self):
494494
expect(next(self.g.iter_repos())).isinstance(github3.repos.Repository)
495495
self.mock_assertions()
496496

497+
next(self.g.iter_repos(type='baz', direction='foobar'))
498+
self.mock_assertions()
499+
497500
self.conf.update(params={'type': 'all', 'direction': 'desc'})
498501

499502
next(self.g.iter_repos(type='all', direction='desc'))
@@ -504,6 +507,9 @@ def test_iter_repos(self):
504507
next(self.g.iter_repos(type='all', direction='foobar'))
505508
self.mock_assertions()
506509

510+
next(self.g.iter_repos(type='all', sort='foobar'))
511+
self.mock_assertions()
512+
507513
def test_iter_user_repos(self):
508514
self.response('repo', _iter=True)
509515
self.get('https://api.github.com/users/sigmavirus24/repos')

0 commit comments

Comments
 (0)
0