summaryrefslogtreecommitdiffstats
path: root/tests/helper/Stubs.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-03-06 13:36:39 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-03-06 13:36:39 +0100
commit4df2b77fdf42046fe19bd371be7c7255986b5980 (patch)
tree2a7227a0d22e03dc2c085514eaab36a7e5e612c4 /tests/helper/Stubs.py
parentssl fix (diff)
downloadpyload-4df2b77fdf42046fe19bd371be7c7255986b5980.tar.xz
renamed hooks to addons, new filemanager and database, many new api methods
you will loose ALL your LINKS, webinterface will NOT work
Diffstat (limited to 'tests/helper/Stubs.py')
-rw-r--r--tests/helper/Stubs.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/helper/Stubs.py b/tests/helper/Stubs.py
index ade15f0c4..be2f5052b 100644
--- a/tests/helper/Stubs.py
+++ b/tests/helper/Stubs.py
@@ -58,8 +58,8 @@ class Core:
def __init__(self):
self.log = NoLog()
- self.api = self
- self.core = self
+ self.api = self.core = self
+ self.threadManager = self
self.debug = True
self.captcha = True
self.config = ConfigParser()
@@ -67,7 +67,7 @@ class Core:
self.requestFactory = RequestFactory(self)
__builtin__.pyreq = self.requestFactory
self.accountManager = AccountManager()
- self.hookManager = self.eventManager = self.interActionManager = NoopClass()
+ self.addonManager = self.eventManager = self.interActionManager = NoopClass()
self.js = JsEngine()
self.cache = {}
self.packageCache = {}
@@ -86,6 +86,9 @@ class Core:
def updatePackage(self, *args):
pass
+ def processingIds(self, *args):
+ return []
+
def getPackage(self, id):
return PyPackage(self, 0, "tmp", "tmp", "", "", 0, 0)
@@ -118,5 +121,5 @@ class Thread(BaseThread):
__builtin__._ = lambda x: x
__builtin__.pypath = abspath(join(dirname(__file__), "..", ".."))
-__builtin__.hookManager = NoopClass()
+__builtin__.addonManager = NoopClass()
__builtin__.pyreq = None