no-statically-truthy-assertion
An assertion condition is statically truthy, including test-local scalar setup.
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 == 200def test_service(): status = "ok" assert status == "ok"def test_service(): status = service_status() assert status == "ok"Formerly: no-tautological-expect