mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
blog post new release (#2712)
* blog post new release * update words * Update docs/blog/posts/release0-27-0.md Co-authored-by: Dave Pearson <davep@davep.org> --------- Co-authored-by: Dave Pearson <davep@davep.org>
This commit is contained in:
@@ -16,6 +16,7 @@ def test_sparkline_single_datapoint():
|
||||
|
||||
|
||||
def test_sparkline_two_values_min_max():
|
||||
print(repr(render(Sparkline([2, 4], width=2))))
|
||||
assert render(Sparkline([2, 4], width=2)) == f"{GREEN}▁{STOP}{RED}█{STOP}"
|
||||
|
||||
|
||||
@@ -40,13 +41,6 @@ def test_sparkline_shrink_data_to_width():
|
||||
)
|
||||
|
||||
|
||||
def test_sparkline_shrink_data_to_width_non_divisible():
|
||||
assert (
|
||||
render(Sparkline([1, 2, 3, 4, 5], width=3, summary_function=min))
|
||||
== f"{GREEN}▁{STOP}{BLENDED}▄{STOP}{RED}█{STOP}"
|
||||
)
|
||||
|
||||
|
||||
def test_sparkline_color_blend():
|
||||
assert (
|
||||
render(Sparkline([1, 2, 3], width=3))
|
||||
|
||||
Reference in New Issue
Block a user