reviewboard.extensions.testing.testcases¶
Base test case support for extension unit tests.
-
class
ExtensionTestCase
(methodName=’runTest’)[source]¶ Bases:
djblets.extensions.testing.testcases.ExtensionTestCaseMixin
,reviewboard.testing.testcase.TestCase
Base class for Review Board extension unit tests.
Extension authors can subclass this to help write unit tests for their extensions, ensuring their functionality works as expected.
See Testing Extensions for information on how to write unit tests for extensions, and
ExtensionTestCaseMixin
for the details on how this class works.-
get_extension_manager
()[source]¶ Return the extension manager used for these extensions.
Subclasses don’t need to override this unless they’re doing something highly specialized.
Returns: The extension manager used for the unit tests. Return type: djblets.extensions.manager.ExtensionManager
-