Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ee15f8a

Browse files
committed
Add a Sankey label test
1 parent c2fb60f commit ee15f8a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/matplotlib/tests/test_sankey.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,8 @@ def test_sankey():
55
# lets just create a sankey instance and check the code runs
66
sankey = Sankey()
77
sankey.add()
8+
9+
10+
def test_label():
11+
s = Sankey(flows=[0.25], labels=['First'], orientations=[-1])
12+
assert s.diagrams[0].texts[0].get_text() == 'First\n0.25'

0 commit comments

Comments
 (0)