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