@@ -41,55 +41,55 @@ def test_is_public(self):
4141class TestPayloadHandlers (TestCase ):
4242def test_commitcomment (self ):
4343comment = {'comment' :load ('repo_comment' )}
44- comment = github3 .events ._commitcomment (comment )
44+ comment = github3 .events ._commitcomment (comment , None )
4545assert isinstance (comment ['comment' ],
4646github3 .repos .comment .RepoComment )
4747
4848def test_follow (self ):
4949f = {'target' :load ('user' )}
50- github3 .events ._follow (f )
50+ github3 .events ._follow (f , None )
5151assert isinstance (f ['target' ],github3 .users .User )
5252
5353def test_forkev (self ):
5454f = {'forkee' :load ('repo' )}
55- github3 .events ._forkev (f )
55+ github3 .events ._forkev (f , None )
5656assert isinstance (f ['forkee' ],github3 .repos .Repository )
5757
5858def test_gist (self ):
5959g = {'gist' :load ('gist' )}
60- github3 .events ._gist (g )
60+ github3 .events ._gist (g , None )
6161assert isinstance (g ['gist' ],github3 .gists .Gist )
6262
6363def test_issuecomm (self ):
6464c = {'issue' :load ('issue' ),'comment' :load ('issue_comment' )}
65- github3 .events ._issuecomm (c )
65+ github3 .events ._issuecomm (c , None )
6666assert isinstance (c ['issue' ],github3 .issues .Issue )
6767assert isinstance (c ['comment' ],github3 .issues .comment .IssueComment )
6868
6969def test_issueevent (self ):
7070c = {'issue' :load ('issue' )}
71- github3 .events ._issueevent (c )
71+ github3 .events ._issueevent (c , None )
7272assert isinstance (c ['issue' ],github3 .issues .Issue )
7373
7474def test_member (self ):
7575m = {'member' :load ('user' )}
76- github3 .events ._member (m )
76+ github3 .events ._member (m , None )
7777assert isinstance (m ['member' ],github3 .users .User )
7878
7979def test_pullreqev (self ):
8080p = {'pull_request' :load ('pull' )}
81- github3 .events ._pullreqev (p )
81+ github3 .events ._pullreqev (p , None )
8282assert isinstance (p ['pull_request' ],github3 .pulls .PullRequest )
8383
8484def test_pullreqcomm (self ):
8585p = {'comment' :load ('review_comment' )}
86- github3 .events ._pullreqcomm (p )
86+ github3 .events ._pullreqcomm (p , None )
8787assert isinstance (p ['comment' ],github3 .pulls .ReviewComment )
8888
8989@pytest .mark .xfail
9090def test_team (payload ):
9191t = {'team' :load ('team' ),'repo' :load ('repo' ),'user' :load ('user' )}
92- github3 .events ._team (t )
92+ github3 .events ._team (t , None )
9393assert isinstance (t ['team' ],github3 .orgs .Team )
9494assert isinstance (t ['repo' ],github3 .repos .Repository )
9595assert isinstance (t ['user' ],github3 .users .User )