If `repr` is False, ignore that attribute.
(self, slots)
| 330 | """ |
| 331 | |
| 332 | def test_repr(self, slots): |
| 333 | """ |
| 334 | If `repr` is False, ignore that attribute. |
| 335 | """ |
| 336 | C = make_class( |
| 337 | "C", {"a": attr.ib(repr=False), "b": attr.ib()}, slots=slots |
| 338 | ) |
| 339 | |
| 340 | assert "C(b=2)" == repr(C(1, 2)) |
| 341 | |
| 342 | @pytest.mark.parametrize("cls", [ReprC, ReprCSlots]) |
| 343 | def test_repr_works(self, cls): |
nothing calls this directly
no test coverage detected