summaryrefslogtreecommitdiffstats
path: root/tests/manager/test_accountManager.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2014-01-11 22:23:20 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2014-01-11 22:23:20 +0100
commit94c1cceae1e58c0b7cff09bef684751978d878e3 (patch)
tree9e2f9eebce7602431aaa24cbd5f8871e48e4ff3f /tests/manager/test_accountManager.py
parentfixed error from last commit (diff)
downloadpyload-94c1cceae1e58c0b7cff09bef684751978d878e3.tar.xz
small cleanup, fixed some test cases
Diffstat (limited to 'tests/manager/test_accountManager.py')
-rw-r--r--tests/manager/test_accountManager.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/manager/test_accountManager.py b/tests/manager/test_accountManager.py
index 1b328f892..b7166b2bd 100644
--- a/tests/manager/test_accountManager.py
+++ b/tests/manager/test_accountManager.py
@@ -4,17 +4,12 @@ from unittest import TestCase
from tests.helper.Stubs import Core, adminUser, normalUser
-from pyload.database import DatabaseBackend
-from pyload.AccountManager import AccountManager
-
class TestAccountManager(TestCase):
@classmethod
def setUpClass(cls):
cls.core = Core()
- cls.db = DatabaseBackend(cls.core)
- cls.core.db = cls.db
- cls.db.setup()
+ cls.db = cls.core.db
@classmethod
def tearDownClass(cls):
@@ -22,7 +17,7 @@ class TestAccountManager(TestCase):
def setUp(self):
self.db.purgeAccounts()
- self.manager = AccountManager(self.core)
+ self.manager = self.core.accountManager
def test_access(self):
account = self.manager.updateAccount("Http", "User", "somepw", adminUser)