diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-06-29 19:32:06 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-06-29 19:32:06 +0200 |
commit | facb379f3b6cdc5423f8400d756822f5f7890e2c (patch) | |
tree | 55e23c03ffdc71206fb9c50be485bd9d34dc9633 /tests/api/test_api.py | |
parent | fixed capitalization of dependency (diff) | |
download | pyload-facb379f3b6cdc5423f8400d756822f5f7890e2c.tar.xz |
updated test suite
Diffstat (limited to 'tests/api/test_api.py')
-rw-r--r-- | tests/api/test_api.py | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/tests/api/test_api.py b/tests/api/test_api.py index 68448b891..668470fe4 100644 --- a/tests/api/test_api.py +++ b/tests/api/test_api.py @@ -1,17 +1,19 @@ - from unittest import TestCase from random import choice -from pyLoadCore import Core +from pyload.Core import Core from ApiTester import ApiTester + class TestAPI(TestCase): """ Test all available testers randomly and on all backends """ + _multiprocess_can_split_ = True core = None + #TODO: parallel testing @classmethod def setUpClass(cls): from test_noargs import TestNoArgs @@ -33,7 +35,16 @@ class TestAPI(TestCase): cls.core.shutdown() def test_random(self, n=10000): - for i in range(n): func = choice(self.methods) func() + + def test_random2(self, n): + self.test_random(n) + + def test_random3(self, n): + self.test_random(n) + + def test_random4(self, n): + self.test_random(n) + |