diff options
author | Stefano <l.stickell@yahoo.it> | 2013-07-20 22:03:43 +0200 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-07-20 22:03:43 +0200 |
commit | d1694e31b8b5570508bfbc13cc817dc9b0d8b2a8 (patch) | |
tree | 50d89611fab4e02c36155cec663b684167a80252 /tests/helper/Stubs.py | |
parent | Merge plugins from stable (diff) | |
parent | tried to fix hoster tester, removed unneeded files (diff) | |
download | pyload-d1694e31b8b5570508bfbc13cc817dc9b0d8b2a8.tar.xz |
Merge branch 'master' of https://github.com/pyload/pyload
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() |