no-statically-truthy-assertion
A bare assertion condition is statically truthy.
Why
A condition that stays truthy whenever evaluation succeeds cannot reject an incorrect result and often means the intended condition was wrapped in a container or placed in the message slot.
Fix
Assert an explicit runtime-derived condition. If the test only requires an operation not to raise, evaluate it directly and retain any meaningful follow-up assertion.
Examples
def test_service(response): assert True, response.status_code == 200def test_service(response): assert response.status_code == 200Formerly: no-tautological-expect