TestRunner isn't picking up testing.py
I made it to just after we added the unicode and slug tests to test_models.py, and I'm trying to run the python manage.py test --settings=microblog.settings.testing -v 2 command. But it doesn't seem to pick up my tests and says that it ran 0 tests in 0.00 seconds.
Just to make sure I'm understanding correctly, I have testing.py in /vagrant/projects/microblog/microblog/settings, which is the code snippet from snipt.net. Then I have test_models.py in /vagrant/projects/microblog/blog/tests which is the class extending TestCase that runs the tests.
Any idea what I'm doing wrong? Thanks!
Sorry You must be a logged in, registered user to answer a question.
Answers
Do you have /vagrant/projects/microblog/blog/tests/__init__.py?
My thought process just now: "Of course, see it's right here: `__init.py__`... damn it." Thanks for the help, it's working great now. And thanks for making this series, I've found it very helpful.
Matthew Bishop
on