@@ -41,55 +41,55 @@ def test_is_public(self):
41
41
class TestPayloadHandlers (TestCase ):
42
42
def test_commitcomment (self ):
43
43
comment = {'comment' : load ('repo_comment' )}
44
- comment = github3 .events ._commitcomment (comment )
44
+ comment = github3 .events ._commitcomment (comment , None )
45
45
assert isinstance (comment ['comment' ],
46
46
github3 .repos .comment .RepoComment )
47
47
48
48
def test_follow (self ):
49
49
f = {'target' : load ('user' )}
50
- github3 .events ._follow (f )
50
+ github3 .events ._follow (f , None )
51
51
assert isinstance (f ['target' ], github3 .users .User )
52
52
53
53
def test_forkev (self ):
54
54
f = {'forkee' : load ('repo' )}
55
- github3 .events ._forkev (f )
55
+ github3 .events ._forkev (f , None )
56
56
assert isinstance (f ['forkee' ], github3 .repos .Repository )
57
57
58
58
def test_gist (self ):
59
59
g = {'gist' : load ('gist' )}
60
- github3 .events ._gist (g )
60
+ github3 .events ._gist (g , None )
61
61
assert isinstance (g ['gist' ], github3 .gists .Gist )
62
62
63
63
def test_issuecomm (self ):
64
64
c = {'issue' : load ('issue' ), 'comment' : load ('issue_comment' )}
65
- github3 .events ._issuecomm (c )
65
+ github3 .events ._issuecomm (c , None )
66
66
assert isinstance (c ['issue' ], github3 .issues .Issue )
67
67
assert isinstance (c ['comment' ], github3 .issues .comment .IssueComment )
68
68
69
69
def test_issueevent (self ):
70
70
c = {'issue' : load ('issue' )}
71
- github3 .events ._issueevent (c )
71
+ github3 .events ._issueevent (c , None )
72
72
assert isinstance (c ['issue' ], github3 .issues .Issue )
73
73
74
74
def test_member (self ):
75
75
m = {'member' : load ('user' )}
76
- github3 .events ._member (m )
76
+ github3 .events ._member (m , None )
77
77
assert isinstance (m ['member' ], github3 .users .User )
78
78
79
79
def test_pullreqev (self ):
80
80
p = {'pull_request' : load ('pull' )}
81
- github3 .events ._pullreqev (p )
81
+ github3 .events ._pullreqev (p , None )
82
82
assert isinstance (p ['pull_request' ], github3 .pulls .PullRequest )
83
83
84
84
def test_pullreqcomm (self ):
85
85
p = {'comment' : load ('review_comment' )}
86
- github3 .events ._pullreqcomm (p )
86
+ github3 .events ._pullreqcomm (p , None )
87
87
assert isinstance (p ['comment' ], github3 .pulls .ReviewComment )
88
88
89
89
@pytest .mark .xfail
90
90
def test_team (payload ):
91
91
t = {'team' : load ('team' ), 'repo' : load ('repo' ), 'user' : load ('user' )}
92
- github3 .events ._team (t )
92
+ github3 .events ._team (t , None )
93
93
assert isinstance (t ['team' ], github3 .orgs .Team )
94
94
assert isinstance (t ['repo' ], github3 .repos .Repository )
95
95
assert isinstance (t ['user' ], github3 .users .User )
0 commit comments