Add infrastructure to help apps offer extension testing functionality.
Review Request #8290 — Created July 16, 2016 and submitted — Latest diff uploaded
This provides some new classes that applications can use to help
extension authors write unit tests for their extensions.There's a new test runner class that handles setting up a Django
environment, configuring basic Djblets settings, and handling static
media collection. This can easily form the base test runner for any
Django applications, not just those with extensions, but it's also
useful for extension test cases.There's also a new mixin for unit test: ExtensionTestCaseMixin. This
makes it easy to get a registered/enabled extension instance for a given
extension class, so that unit tests can be written utilizing that
extension.Documentation has been written on making use of these in a product.
Based on work by Weijie Sun.
Updated Review Board to make use of this and modified Power Pack to use
the new infrastructure. I successfully completed a unit test run.Built the docs and read through them. Tested the code samples.