Test that we get an empty list of segments if there is no label to display.
(
width: int, has_left_corner: bool, has_right_corner: bool
)
| 96 | ], |
| 97 | ) |
| 98 | def test_render_border_label_empty_label_skipped( |
| 99 | width: int, has_left_corner: bool, has_right_corner: bool |
| 100 | ): |
| 101 | """Test that we get an empty list of segments if there is no label to display.""" |
| 102 | |
| 103 | assert [] == list( |
| 104 | render_border_label( |
| 105 | (Content(""), Style()), |
| 106 | True, |
| 107 | "round", |
| 108 | width, |
| 109 | Style(), |
| 110 | Style(), |
| 111 | Style(), |
| 112 | has_left_corner, |
| 113 | has_right_corner, |
| 114 | ) |
| 115 | ) |
| 116 | |
| 117 | |
| 118 | @pytest.mark.parametrize( |
nothing calls this directly
no test coverage detected
searching dependent graphs…