Test that p.break_ is used in repr
()
| 173 | |
| 174 | |
| 175 | def test_pprint_break_repr(): |
| 176 | """ |
| 177 | Test that p.break_ is used in repr |
| 178 | """ |
| 179 | output = pretty.pretty([[BreakingRepr()]]) |
| 180 | expected = "[[Breaking(\n )]]" |
| 181 | assert output == expected |
| 182 | |
| 183 | output = pretty.pretty([[BreakingRepr()] * 2]) |
| 184 | expected = "[[Breaking(\n ),\n Breaking(\n )]]" |
| 185 | assert output == expected |
| 186 | |
| 187 | |
| 188 | def test_bad_repr(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…