mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-02 11:51:10 +00:00
Fix testEvents
This commit is contained in:
@@ -111,27 +111,27 @@ class Event( object ):
|
||||
|
||||
def __useAttributes( self, attributes ):
|
||||
#@todo No need to check if attribute is in attributes when attribute is mandatory
|
||||
if "actor" in attributes:
|
||||
if "actor" in attributes and attributes[ "actor" ] is not None:
|
||||
self.__actor = NamedUser.NamedUser( self.__requester, attributes[ "actor" ], lazy = True )
|
||||
if "commit_id" in attributes:
|
||||
if "commit_id" in attributes and attributes[ "commit_id" ] is not None:
|
||||
self.__commit_id = attributes[ "commit_id" ]
|
||||
if "created_at" in attributes:
|
||||
if "created_at" in attributes and attributes[ "created_at" ] is not None:
|
||||
self.__created_at = attributes[ "created_at" ]
|
||||
if "event" in attributes:
|
||||
if "event" in attributes and attributes[ "event" ] is not None:
|
||||
self.__event = attributes[ "event" ]
|
||||
if "id" in attributes:
|
||||
if "id" in attributes and attributes[ "id" ] is not None:
|
||||
self.__id = attributes[ "id" ]
|
||||
if "issue" in attributes:
|
||||
if "issue" in attributes and attributes[ "issue" ] is not None:
|
||||
self.__issue = attributes[ "issue" ]
|
||||
if "org" in attributes:
|
||||
if "org" in attributes and attributes[ "org" ] is not None:
|
||||
self.__org = Organization.Organization( self.__requester, attributes[ "org" ], lazy = True )
|
||||
if "payload" in attributes:
|
||||
if "payload" in attributes and attributes[ "payload" ] is not None:
|
||||
self.__payload = attributes[ "payload" ]
|
||||
if "public" in attributes:
|
||||
if "public" in attributes and attributes[ "public" ] is not None:
|
||||
self.__public = attributes[ "public" ]
|
||||
if "repo" in attributes:
|
||||
if "repo" in attributes and attributes[ "repo" ] is not None:
|
||||
self.__repo = Repository.Repository( self.__requester, attributes[ "repo" ], lazy = True )
|
||||
if "type" in attributes:
|
||||
if "type" in attributes and attributes[ "type" ] is not None:
|
||||
self.__type = attributes[ "type" ]
|
||||
if "url" in attributes:
|
||||
if "url" in attributes and attributes[ "url" ] is not None:
|
||||
self.__url = attributes[ "url" ]
|
||||
|
||||
Reference in New Issue
Block a user