()
| 104 | |
| 105 | |
| 106 | def test_console_options_update_height() -> None: |
| 107 | options = ConsoleOptions( |
| 108 | ConsoleDimensions(80, 25), |
| 109 | max_height=25, |
| 110 | legacy_windows=False, |
| 111 | min_width=10, |
| 112 | max_width=20, |
| 113 | is_terminal=False, |
| 114 | encoding="utf-8", |
| 115 | ) |
| 116 | assert options.height is None |
| 117 | render_options = options.update_height(12) |
| 118 | assert options.height is None |
| 119 | assert render_options.height == 12 |
| 120 | assert render_options.max_height == 12 |
| 121 | |
| 122 | |
| 123 | def test_init() -> None: |
nothing calls this directly
no test coverage detected