Skip to content

Commit

Permalink
try some new tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wspr committed Mar 10, 2024
1 parent 4893367 commit 8976a14
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion pysankey/tests/test_fruit_defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,23 @@
class TestFruitDefault(TestFruit):

def test_fruits_default(self):

plt.figure(dpi=150)
sky.sankey(self.data)
plt.savefig("fruits_default.png")

def test_fruits_sorting(self):

plt.figure(dpi=150)
sky.sankey(self.data, sorting=1)
plt.savefig("fruits_sorting_1.png")

plt.figure(dpi=150)
sky.sankey(self.data, sorting=-1)
plt.savefig("fruits_sorting_2.png")

def test_fruits_colormap(self):

plt.figure(dpi=150)
sky.sankey(self.data, colormap="jet")
plt.savefig("fruits_colormap_jet.png")

0 comments on commit 8976a14

Please sign in to comment.