django-nose
django-nose copied to clipboard
setup_test_environment not called by BasicNoseRunner.run_tests
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?
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.