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

Class CouchDbKitTestSuiteRunner

source code

                              object --+    
                                       |    
django.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)
Destroys all the non-mirror databases.
source code

Inherited from django.test.simple.DjangoTestSuiteRunner: __init__, build_suite, run_suite, run_tests, setup_test_environment, suite_result, teardown_test_environment

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  dbs = []
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

setup_databases(self, **kwargs)

source code 
Overrides: django.test.simple.DjangoTestSuiteRunner.setup_databases

teardown_databases(self, old_config, **kwargs)

source code 

Destroys all the non-mirror databases.

Overrides: django.test.simple.DjangoTestSuiteRunner.teardown_databases
(inherited documentation)