diff options
Diffstat (limited to 'tests/helper/Stubs.py')
-rw-r--r-- | tests/helper/Stubs.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/helper/Stubs.py b/tests/helper/Stubs.py index 2c356ba3e..551778828 100644 --- a/tests/helper/Stubs.py +++ b/tests/helper/Stubs.py @@ -27,8 +27,10 @@ from logging import log, DEBUG, INFO, WARN, ERROR def noop(*args, **kwargs): pass + ConfigParser.save = noop + class LogStub: def debug(self, *args): log(DEBUG, *args) @@ -72,7 +74,7 @@ class Core: self.accountManager = AccountManager() self.addonManager = AddonManager() self.eventManager = self.evm = NoopClass() - self.interActionManager = self.im = NoopClass() + self.interactionManager = self.im = NoopClass() self.js = JsEngine() self.cache = {} self.packageCache = {} @@ -87,7 +89,7 @@ class Core: def path(self, path): return path - def updateLink(self, *args): + def updateFile(self, *args): pass def updatePackage(self, *args): @@ -96,8 +98,8 @@ class Core: def processingIds(self, *args): return [] - def getPackage(self, id): - return PyPackage(self, 0, "tmp", "tmp", "", "", 0, 0) + def getPackage(self, *args): + return PyPackage(self, 0, "tmp", "tmp", -1, 0, "", "", "", 0, "", 0, 0, 0) def print_exc(self): log(ERROR, format_exc()) @@ -132,6 +134,7 @@ class Thread(BaseThread): return dump + __builtin__._ = lambda x: x __builtin__.pypath = abspath(join(dirname(__file__), "..", "..")) __builtin__.addonManager = AddonManager() |