How to install Python Nosetests (version 1.1.2) to show log output?

I have a set of unit tests in which all functions are registered at different levels of logging. When I run these unit tests individually or through a shell script, the entire log is displayed. When I run these unit tests using nosetests Python nose , I don't see the log output. How can I show the magazine?

The nose version I'm using is 1.1.2 (and I can't change this):

 -bash-4.1$ pip freeze | grep nose nose==1.1.2 

I am currently running nosetests with the following command:

 nosetests --verbosity=2 *.py 

When I try to use the --logging-level=INFO option, I run into difficulties:

 Usage: nosetests [options] nosetests: error: no such option: --logging-level 
+6
source share
1 answer

You ask about the added feature in 1.2.0 and state that you cannot update.

So, if you do not fix your legacy version by reversing this function, the answer is to find a way to upgrade .

+1
source

Source: https://habr.com/ru/post/971941/


All Articles