#Django #TransactionTestCase with REUSE_DB=1 of #django-nose

Lately, I found out that Django’s TransactionTestCase leaves test data in database after the test case is executed. It’s not until the next execution of _pre_setup method of a TransactionTestCase instance that the database is flushed. This is troublesome when tests are run with Django Nose’s test runner with REUSE_DB =1. An easy fix to this is to customize the TransactionTestCase so that it deletes the test data on exit. I wrote a simple wrapper around Django’s TransactionTestCase and extend it to write other transaction test cases....

September 8, 2012 · Ratnadeep Debnath

Start testing Transifex

How do you setup Transifex? Here is all you need to know to setup Transifex: http://help.transifex.net/server/install.html http://fosswithme.wordpress.com/2011/10/20/setup-transifex-in-virtualenv/ is another good write-up on how to setup and run Transifex in virtualenv. So, I’d be building on top of that to show you how to start testing Transifex using django-nose. What packages will you need? django-nose, nose, nose-exclude, coverage You can install the above packages using pip install <package_name> Configure Transifex settings to enable django-nose Test Runner...

November 1, 2011 · Ratnadeep Debnath