pytest-assert-always-false (PT015)
Added in v0.0.208 · Related issues · View source
Derived from the flake8-pytest-style linter.
What it does
Checks for assert statements whose test expression is a falsy value.
Why is this bad?
pytest.fail conveys the intent more clearly than assert falsy_value.
Example
Use instead: