Unroll tab headers into single renderable, more parameterisation of tabs, more examples

This commit is contained in:
Darren Burns
2022-02-17 12:20:44 +00:00
parent dee99f947f
commit 4e61770a7c
8 changed files with 202 additions and 100 deletions

View File

@@ -111,12 +111,7 @@ def test_highlight_full_range_out_of_bounds_start():
def test_custom_styles():
bar = UnderlineBar(
highlight_range=(2, 4),
highlight_style="red",
background_style="green",
width=6
)
bar = UnderlineBar(highlight_range=(2, 4), highlight_style="red", background_style="green", width=6)
assert render(bar) == (
f"{GREEN}{STOP}"
f"{GREEN}{STOP}"