()
| 48 | |
| 49 | |
| 50 | def test_rule_cjk(): |
| 51 | console = Console( |
| 52 | width=16, |
| 53 | file=io.StringIO(), |
| 54 | force_terminal=True, |
| 55 | color_system=None, |
| 56 | legacy_windows=False, |
| 57 | _environ={}, |
| 58 | ) |
| 59 | console.rule("欢迎!") |
| 60 | expected = "──── 欢迎! ────\n" |
| 61 | assert console.file.getvalue() == expected |
| 62 | |
| 63 | |
| 64 | @pytest.mark.parametrize( |