The solution was to use DjangoTestSuiteRunner. I ended up copying the 
method DjangoTestSuiteRunner.run_tests and modifying to use a test suite. 

The code is

from django.test.simple import DjangoTestSuiteRunnerfrom django.utils import 
unittest

suite_payment = unittest.TestLoader().loadTestsFromTestCase(yPaymentTest)
djangoRunner = DjangoTestSuiteRunner(verbosity=2)
djangoRunner.setup_test_environment()
old_config = djangoRunner.setup_databases()    
djangoRunner.run_suite(suite_payment )
djangoRunner.teardown_databases(old_config)
djangoRunner.teardown_test_environment()

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/febef8b0-004a-4b23-a06a-d8c03a9e00bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to