Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on May 10, 2011
  1. Deactivate locales before each test.

    While running tests in a different order, got some failures in SUMO. A locale activation had leaked out somehow (middleware failure?). At any rate, the test harness should start this from a known-good state.
    (It's not worth introducing even a soft dependency on tower for this.)
Commits on May 9, 2011
  1. Cut test run startup time from 15 seconds (worst case) to 3.

    This saves 700 queries before the tests are even run: truncation of tables and population of content_type and auth_permission. To force a flush after your schema has changed, define FORCE_DB.
    FORCE_DB no longer implies a drop of the DB after the test run. That DB is perfectly good; we can reuse it next time.
  2. Don't send MySQL commands to a non-MySQL DB if in a multi-DB situatio…

    …n where one DB is MySQL.
    Also, factor out the knowledge about how to tell if a connection is to a MySQL DB.
Commits on May 4, 2011
  1. Factor Jinja- and cache-machine-specific stuff out of FastFixtureTest…

    …Case, and make TestCase a thin wrapper around it.
    Anybody who uses TestCase should go fast for free.
  2. Introduce FixtureReusingTestCase, a replacement TestCase which makes …

    …your tests go 2-3 times as fast.
    By loading fixtures only once per test class and using DB transaction machinery to restore them between tests, FixtureReusingTestCase brought SUMO's 1060 tests from 302 seconds down to 93.
    It also uses these tricks:
    * Truncate only the tables which actually had fixture data loaded into them. Truncate always drops and re-adds the table, even if it's empty, a nontrivial piece of I/O. This brings a 199s test run down to 97s.
    * Quit opening and closing connections all the time. This saves 4 more seconds.
Commits on Apr 22, 2011
  1. @rlr

    Django now has a RequestFactory so we use it but still need to subcla…

    rlr authored
    …ss it
    to add wsgi.input.
Commits on Mar 16, 2011
  1. @kumar303

    Adds support for sqlite

    kumar303 authored
Commits on Mar 8, 2011
  1. @kumar303
  2. @kumar303 @davedash
Commits on Mar 3, 2011
  1. @davedash
Commits on Sep 29, 2010
  1. Now without foreign key checks during fixture loading.

    James Socol authored
Commits on Sep 23, 2010
  1. try to disable async signals

    Jeff Balogh authored
Commits on Aug 30, 2010
  1. @pcraciunoiu
Commits on Jul 12, 2010
  1. use pre_setup instead of setUp

    Jeff Balogh authored
Commits on Jun 14, 2010
  1. @jbalogh
Commits on Apr 22, 2010
  1. @fwenzel

    send signals to other apps before and after each test, so they can pe…

    fwenzel authored
    …rform cleanup (bug 560541)
Commits on Apr 20, 2010
  1. @fwenzel

    fixed gitignore syntax

    fwenzel authored
Commits on Apr 14, 2010
  1. @jbalogh
Commits on Mar 15, 2010
  1. @davedash

    A faster TransactionTestCase.

    davedash authored
Commits on Mar 12, 2010
  1. @fwenzel
Commits on Feb 19, 2010
  1. @jbalogh
  2. @jbalogh

    helper file updates

    jbalogh authored
Commits on Feb 9, 2010
  1. @jbalogh
  2. @jbalogh
Something went wrong with that request. Please try again.