Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In pytest what is "quiet" mode, and what is the purpose?

I am currently learning pytest and going through the documentation it is not clear what "quiet" mode is and what the reason for using it is. Can anyone clarify this to me?

In the documentation I see it is denoted with -q like such:

$ pytest -q test_sysexit.py

But what does this do?

like image 842
RostSunshine Avatar asked Oct 18 '22 11:10

RostSunshine


1 Answers

Adding -q option will make pytest to be more concise in its output to the console.

There are more options similar to it:

  • -qq will make pytest output even less information than -q.
  • -v to output more information than the default amount.

Source: run pytest --help in shell:

    -v, --verbose         increase verbosity.
    -q, --quiet           decrease verbosity.
like image 167
Elijas Dapšauskas Avatar answered Nov 01 '22 16:11

Elijas Dapšauskas