Permalink
Commits on Dec 15, 2011
Commits on Nov 23, 2011
  1. Merge pull request #11 from peterbe/patch-1

    peterbe committed Nov 23, 2011
    Makes it possible to switch off FORCE_DB by setting to 'false'.
  2. Makes it possible to switch off FORCE_DB by setting to 'false'. Other…

    peterbe committed Nov 23, 2011
    …wise, the only way to disable it after having set it once is to use ``FORCE_DB= ./manage.py test ...`` which isn't great.
Commits on Aug 31, 2011
Commits on Aug 30, 2011
  1. only commit if dirty

    Jeff Balogh
    Jeff Balogh committed Aug 30, 2011
  2. do a final commit before leaving transaction management

    Jeff Balogh
    Jeff Balogh committed Aug 30, 2011
Commits on Aug 27, 2011
  1. make extra app test cases pull in fixtures

    Andy McKay
    Andy McKay committed Aug 27, 2011
Commits on Aug 23, 2011
  1. use unittest-style names

    Jeff Balogh
    Jeff Balogh committed Aug 23, 2011
Commits on Aug 22, 2011
  1. Merge pull request #7 from andymckay/master

    Andy McKay
    Andy McKay committed Aug 22, 2011
    we need our tower locale activated
Commits on Jul 15, 2011
Commits on Jun 14, 2011
  1. play nicely with celery 2.2

    Jeff Balogh
    Jeff Balogh committed Jun 13, 2011
Commits on May 10, 2011
  1. Deactivate locales before each test.

    erikrose committed May 10, 2011
    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.

    erikrose committed May 7, 2011
    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…

    erikrose committed May 7, 2011
    …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…

    erikrose committed May 4, 2011
    …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 …

    erikrose committed Apr 29, 2011
    …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. Django now has a RequestFactory so we use it but still need to subcla…

    rlr committed Apr 22, 2011
    …ss it
    
    to add wsgi.input.
Commits on Mar 16, 2011
  1. Adds support for sqlite

    kumar303 committed Mar 16, 2011
Commits on Mar 8, 2011
Commits on Mar 3, 2011
Commits on Sep 29, 2010
  1. Now without foreign key checks during fixture loading.

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

    Jeff Balogh
    Jeff Balogh committed Sep 23, 2010
Commits on Aug 30, 2010
  1. Add a list of tables to exclude from truncation in TransactionTestCas…

    Paul Craciunoiu
    Paul Craciunoiu committed Aug 30, 2010
    …e._fixture_teardown
Commits on Jul 12, 2010
  1. use pre_setup instead of setUp

    Jeff Balogh
    Jeff Balogh committed Jul 12, 2010
Commits on Jun 14, 2010
Commits on Apr 22, 2010
  1. send signals to other apps before and after each test, so they can pe…

    fwenzel committed Apr 21, 2010
    …rform cleanup (bug 560541)
Commits on Apr 20, 2010
  1. fixed gitignore syntax

    fwenzel committed Apr 20, 2010
Commits on Apr 14, 2010
Commits on Mar 15, 2010
Commits on Mar 12, 2010
Commits on Feb 19, 2010
  1. helper file updates

    jbalogh committed Feb 19, 2010
Commits on Feb 9, 2010