Closed stephane closed 5 months ago
May be the right fix is to change the message "(add -v option to show queries)" to "(add -v -v option to show queries)"
but the use of '-v' flag sets the value to 0.
I may be confused but I'm pretty sure passing -v
sets verbosity to 1, not 0. If so, then the current code is correct. Perhaps you are passing -q
somewhere? A -q
reduces the verbosity by 1, so -q -v
ends up 0.
I didnt use other flags...
Maybe it's in your pytest config or in PYTEST_ADDOPTS envvar.
This commit corrects the check for the 'verbose' configuration option value. Previously, it was checked if the value was strictly greater than 0, but the use of '-v' flag sets the value to 0.
Edit: My original patch changed to
verbose = config.getoption("verbose") >= 0
infixtures.py
.