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
ExtensionTestCaseclass is a special test case base class for
Review Board extensions. It exposes the models of the extension via
modelsattribute on instances of the sub-class.
To run tests on the extension, execute
./reviewboard/manage.py test -- extension.tests
extensions.testis the module containing the tests.
Created an extension with a model. Subclassed
and created test methods that passed on that subclass.