Package couchdbkit :: Package ext :: Package django :: Module testrunner :: Class CouchDbKitTestSuiteRunner
[hide private]
[frames] | no frames]

Class CouchDbKitTestSuiteRunner

source code

test.simple.DjangoTestSuiteRunner --+
                                    |
                                   CouchDbKitTestSuiteRunner

A test suite runner for couchdbkit. This offers the exact same functionality as the default django test suite runner, except that it connects all the couchdbkit django-extended models to a test database. The test database is deleted at the end of the tests. To use this, just add this file to your project and the following line to your settings.py file:

TEST_RUNNER = 'myproject.testrunner.CouchDbKitTestSuiteRunner'

Instance Methods [hide private]
 
get_test_db_name(self, dbname) source code
 
setup_databases(self, **kwargs) source code
 
teardown_databases(self, old_config, **kwargs) source code
Class Variables [hide private]
  dbs = []