Add an ExtensionTestCase to allow testing of the models of Review Board extensions
Review Request #6821 — Created Jan. 22, 2015 and discarded — Latest diff uploaded
The
ExtensionTestCase
class is a special test case base class for
Review Board extensions. It exposes the models of the extension via
themodels
attribute on instances of the sub-class.To run tests on the extension, execute
./reviewboard/manage.py test -- extension.tests
whereextensions.test
is the module containing the tests.
Created an extension with a model. Subclassed
ExtensionTestCase
and created test methods that passed on that subclass.