cut and paste typo

This commit is contained in:
Will McGugan 2020-06-20 18:39:00 +01:00
parent 09d4bef9a5
commit eb05312a7d
5 changed files with 10 additions and 10 deletions

View file

@ -28,4 +28,4 @@ jobs:
- name: Test with pytest
run: |
pip install .
python -m pytest tests/ -v
pytest tests/ -v

View file

@ -83,7 +83,7 @@ def test_print_style():
def test_show_cursor():
console = Console(file=io.StringIO(), force_terminal=True, windows_legacy=False)
console = Console(file=io.StringIO(), force_terminal=True, legacy_windows=False)
console.show_cursor(False)
console.print("foo")
console.show_cursor(True)
@ -164,7 +164,7 @@ def test_justify_right():
def test_justify_renderable_none():
console = Console(
file=io.StringIO(), force_terminal=True, width=20, windows_legacy=False
file=io.StringIO(), force_terminal=True, width=20, legacy_windows=False
)
console.print(Panel("FOO", expand=False), justify=None)
assert console.file.getvalue() == "╭───╮\n│FOO│\n╰───╯\n"
@ -172,7 +172,7 @@ def test_justify_renderable_none():
def test_justify_renderable_left():
console = Console(
file=io.StringIO(), force_terminal=True, width=20, windows_legacy=False
file=io.StringIO(), force_terminal=True, width=20, legacy_windows=False
)
console.print(Panel("FOO", expand=False), justify="left")
assert console.file.getvalue() == "╭───╮\n│FOO│\n╰───╯\n"
@ -180,7 +180,7 @@ def test_justify_renderable_left():
def test_justify_renderable_center():
console = Console(
file=io.StringIO(), force_terminal=True, width=20, windows_legacy=False
file=io.StringIO(), force_terminal=True, width=20, legacy_windows=False
)
console.print(Panel("FOO", expand=False), justify="center")
assert console.file.getvalue() == " ╭───╮\n │FOO│\n ╰───╯\n"
@ -188,7 +188,7 @@ def test_justify_renderable_center():
def test_justify_renderable_right():
console = Console(
file=io.StringIO(), force_terminal=True, width=20, windows_legacy=False
file=io.StringIO(), force_terminal=True, width=20, legacy_windows=False
)
console.print(Panel("FOO", expand=False), justify="right")
assert (

View file

@ -18,7 +18,7 @@ def render_log():
force_terminal=True,
log_time_format="[TIME]",
color_system="truecolor",
windows_legacy=False,
legacy_windows=False,
)
console.log()
console.log("Hello from", console, "!")

View file

@ -134,7 +134,7 @@ def test_expand_bar() -> None:
force_terminal=True,
width=10,
color_system="truecolor",
windows_legacy=False,
legacy_windows=False,
)
progress = Progress(
BarColumn(bar_width=None),

View file

@ -9,7 +9,7 @@ from rich.text import Text
def test_rule():
console = Console(
width=16, file=io.StringIO(), force_terminal=True, windows_legacy=False
width=16, file=io.StringIO(), force_terminal=True, legacy_windows=False
)
console.rule()
console.rule("foo")
@ -25,7 +25,7 @@ def test_rule_cjk():
file=io.StringIO(),
force_terminal=True,
color_system=None,
windows_legacy=False,
legacy_windows=False,
)
console.rule("欢迎!")
expected = "──── 欢迎! ────\n"