We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 173889b commit 332e945Copy full SHA for 332e945
tests/test_sankey_diagram.py
@@ -30,7 +30,8 @@ def test_sankey_values(self):
30
fig = sankey_diagram(self.rules, "support", M=3)
31
link_data = fig.data[0].link
32
flow_values = link_data['value']
33
- self.assertEqual(len(flow_values), len(self.rules))
+ expected_links = sum(len(rule.antecedent) * len(rule.consequent) for rule in self.rules)
34
+ self.assertEqual(len(flow_values), expected_links)
35
36
def test_sankey_with_custom_fitness(self):
37
fig = sankey_diagram(self.rules, "support", M=2)
0 commit comments