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()

PyramidDBTestCase

Warning

this testcase destroys the test database for each unittest

class anyblok_pyramid.tests.testcase.PyramidDBTestCase(methodName='runTest')

Bases: anyblok_pyramid.tests.testcase.PyramidTestCase, anyblok.tests.testcase.DBTestCase

init_registry(function, **kwargs)

PyramidBlokTestCase

class anyblok_pyramid.tests.testcase.PyramidBlokTestCase(methodName='runTest')

Bases: anyblok_pyramid.tests.testcase.PyramidTestCase, anyblok.tests.testcase.BlokTestCase

webserver