Skip to content

Commit

Permalink
Format with black
Browse files Browse the repository at this point in the history
  • Loading branch information
wasi-master committed Mar 22, 2022
1 parent fc29278 commit f06da9b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_text.py
Expand Up @@ -297,11 +297,13 @@ def test_append_text():
assert str(test) == "foobar"
assert test._spans == [Span(3, 6, "bold")]


def test_end():
console = Console(width=20, file=StringIO())
test = Group(Text.from_markup("foo", end=" "), Text.from_markup("bar"))
console.print(test)
assert console.file.getvalue() == "foo bar\n"
assert console.file.getvalue() == "foo bar\n"


def test_split():
test = Text()
Expand Down

0 comments on commit f06da9b

Please sign in to comment.