mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 03:11:09 +00:00
Enable debug in TestCase
This commit is contained in:
@@ -45,6 +45,10 @@ class GithubObject(object):
|
||||
'''
|
||||
CHECK_AFTER_INIT_FLAG = False
|
||||
|
||||
@classmethod
|
||||
def setCheckAfterInitFlag(cls, flag):
|
||||
cls.CHECK_AFTER_INIT_FLAG = flag
|
||||
|
||||
def __init__(self, requester, headers, attributes, completed):
|
||||
self._requester = requester
|
||||
# Make sure headers are signed before any operations on attributes
|
||||
@@ -55,7 +59,7 @@ class GithubObject(object):
|
||||
|
||||
# Ask requester to do some checking, for debug and test purpose
|
||||
# Since it's most handy to access and kinda all-knowing
|
||||
if (GithubObject.CHECK_AFTER_INIT_FLAG):
|
||||
if (self.CHECK_AFTER_INIT_FLAG):
|
||||
requester.check_me(self);
|
||||
|
||||
def _storeAndUseAttributes(self, attributes):
|
||||
|
||||
Reference in New Issue
Block a user