Disabling Warnings Entirely In Pytest
You can use the --disable-warnings
command-line option to suppress the warning summary entirely from the test run output.
pytest --disable-warnings
You can also disable warnings capture using the -p no:warnings
command-line option.
pytest -p no:warnings
This is a much better option that allows you to filter out specific warnings, as opposed to all warnings.
[pytest]
filterwarnings =
ignore::DeprecationWarning