pytest – Suppress DeprecationWarning from specific 3rd party modules

You should use the warning filters options (ini or marks):

[pytest]
filterwarnings =
    ignore::DeprecationWarning:botocore.*:

Source: https://docs.python.org/3/library/warnings.html#default-warning-filter

“Individual warnings filters are specified as a sequence of fields separated by colons:”

action:message:category:module:line

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)