Test invalid alignment value.
(self)
| 162 | assert result == "Hello World" # No truncation, just return as-is |
| 163 | |
| 164 | def test_invalid_align(self): |
| 165 | """Test invalid alignment value.""" |
| 166 | with pytest.raises(ValueError, match="Invalid align value"): |
| 167 | pad_to_width("Test", 10, align="invalid") |
| 168 | |
| 169 | def test_custom_fill_char(self): |
| 170 | """Test custom fill character.""" |
nothing calls this directly
no test coverage detected