Helper for unittest¶
For unittest, classes are available to offer some fonctionnalities
PyramidTestCase¶
from anyblok_pyramid.tests.testcase import PyramidTestCase
-
class
anyblok_pyramid.tests.testcase.
PyramidTestCase
Bases:
object
-
init_web_server
()
-
setUp
()
-
classmethod
setUpClass
()
-
PyramidDBTestCase¶
Warning
this testcase destroys the test database for each unittest
-
class
anyblok_pyramid.tests.testcase.
PyramidDBTestCase
(methodName='runTest') Bases:
anyblok_pyramid.testing.PyramidTestCase
,anyblok.testing.DBTestCase
-
init_registry_with_bloks
(*args, **kwargs) call a function to filled the blok manager with new model and bloks to install
Parameters: - bloks – list of blok’s names
- function – function to call
- kwargs – kwargs for the function
Return type: registry instance
-
PyramidBlokTestCase¶
-
class
anyblok_pyramid.tests.testcase.
PyramidBlokTestCase
(methodName='runTest') Bases:
anyblok_pyramid.testing.PyramidTestCase
,anyblok.testing.BlokTestCase
-
webserver
-