Add a mixin for optimizing and compiling fixtures for unit tests.

Review Request #7495 — Created July 7, 2015 and submitted

Information

Djblets
release-0.9.x
abca699...

Reviewers

Review Board had some code that optimized test run times by
pre-compiling any referenced fixtures and storing the results in a way
that could be quickly reused across tests. This cut down test time
considerably.

That code has been pulled out into a FixturesCompilerMixin, which any
test suite can use to get the same speed benefits.

Switched Review Board over to this, and saw that all unit tests passed.

Tested on another project, and saw that it also worked.

reviewbot
  1. Tool: Pyflakes
    Processed Files:
        djblets/testing/testcases.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        djblets/testing/testcases.py
    
    
  2. 
      
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-0.9.x (f6cddb6)