Skip to content

Commit 201e50f

Browse files
committed
add test for None plot title
1 parent 5398e2b commit 201e50f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

climada/test/test_plot.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ def test_exposures_value_pass(self):
8484
_, myax= myexp.plot()
8585
self.assertIn('demo_today', myax[0][0].get_title())
8686

87+
myexp = Exposures(ENT_TEST_XLS)
88+
_, myax= myexp.plot()
89+
self.assertIn('', myax[0][0].get_title())
90+
8791
def test_impact_funcs_pass(self):
8892
"""Plot diferent impact functions."""
8993
myfuncs = ImpactFuncSet(ENT_TEST_XLS)

0 commit comments

Comments
 (0)