I do have several small mo开发者_如何学Godules where the tests are inside them and py.test or nose does not look for them because they do not contain test in their filename.
I\'m writing unit tests u开发者_如何学运维sing nose, and I\'d like to check whether a function raises a warning (the function uses warnings.warn). Is this something that can easily be done? def your_c
is it possible to show the assertion values that failed? It shows the traceback and what kind of excep开发者_运维问答tion was throw but it would more practical to know which values failed.
I have this problem and it\'s drivin\' me nuts! So I am developing my first real Google App Engine application and I always like to discover things while writing tests.
By default when I run a freshen scenario, which contains an undefin开发者_运维百科ed given/when/then clause, that test is simply marked as undefined. No further helpful message as to what actually isn
I recently switched from nose to the new unittest2 package for my python unit testing needs. It does everything I want, except from the fact that I can\'t get its \"discover\" command to recognize the
I\'d like to give GAE Testbed a try, but am running into the following error after completing the instructions on its homepage.
I have a directory with lots of .py files (say test_1.py, test_2.py and so on) Each one of them is written properly to be used with nose. So when I run nosetests script, it finds all the tests in all
I get an ImportError when running my unittests using Nose and I don\'t when I just run it standalone. All files referred to here may be seen at http://gist.github.com/395541# .
I\'d like开发者_如何学运维 to run \"nosetests --with-coverage\" using Ned Batchelder\'s coverage module, but passing the coverage module the --timid flag.