django-nose icon indicating copy to clipboard operation
django-nose copied to clipboard

setup_test_environment not called by BasicNoseRunner.run_tests

Open hamishcampbell opened this issue 12 years ago • 1 comments

Someone might need to confirm this for me on master, but looking at the code I think this is still an issue.

Django test runner setup_test_environment and teardown_test_environment are not called, breaking email tests (for example).

In DjangoTestSuiteRunner these are called from run_tests, as well as the setup_databases methods.

BasicNoseRunner.run_tests doesn't call setup_test_environment, easily fixed by wrapping the function body.

However, I noticed it doesn't appear to run setup_databases either.. so I'm fuzzy on how that method is ever run. What am I missing?

hamishcampbell avatar Jun 05 '13 22:06 hamishcampbell

It's possible that the django-nose overrides run_tests, and has not kept up with the changes in the mainline Django. They may need re-work.

jwhitlock avatar Jul 03 '15 03:07 jwhitlock