repeated-static-call-cases
Three same-shape literal call assertions may be independent parameter cases.
Why
When the calls are independent, named parameters isolate failures and identify the input that failed. Literal syntax alone cannot prove independence.
Fix
Consider a named pytest parameter table only when call order, shared state, fixture lifecycle, and object identity are not part of the contract; otherwise keep the assertions together or suppress the warning.
Examples
def test_parse(): assert parse("a") == 1 assert parse("b") == 2 assert parse("c") == 3@pytest.mark.parametrize(("value", "expected"), [("a", 1), ("b", 2), ("c", 3)])def test_parse(value, expected): assert parse(value) == expectedFormerly: repeated-static-call-assertions