Skip to content

Commit

Permalink
Update github3.py
Browse files Browse the repository at this point in the history
Update github3.py to v1.0.0 and change
`org.iter_teams` to `org.teams` as per
the new version

Closes coala#516
  • Loading branch information
Vamshi99 committed Mar 28, 2018
1 parent ec45229 commit 583785c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/labhub.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def __init__(self, bot, name=None):
self.log.error('Cannot create github object, please check GH_TOKEN')
else:
self.GH3_ORG = gh.organization(self.GH_ORG_NAME)
for team in self.GH3_ORG.iter_teams():
for team in self.GH3_ORG.teams():
teams[team.name] = team

self._teams = teams
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pyopenssl<17.5
git+https://github.com/errbotio/errbot@c2639879d4c298933cdf406193de5a5e626db12b
wolframalpha
github3.py
github3.py~=1.0.0
IGitt==0.4.1.dev20171129151739
gitpython
vcrpy
Expand Down
2 changes: 1 addition & 1 deletion tests/labhub_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def setUp(self):

plugins.labhub.github3.login.return_value = self.mock_gh
self.mock_gh.organization.return_value = self.mock_org
self.mock_org.iter_teams.return_value = [self.mock_team]
self.mock_org.teams.return_value = [self.mock_team]
plugins.labhub.github3.organization.return_value = self.mock_org

def test_invite_cmd(self):
Expand Down

0 comments on commit 583785c

Please sign in to comment.