Skip to content

Commit

Permalink
Fixed unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jul 4, 2018
1 parent 6ed529a commit 5a9d550
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/element/testannotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ def test_text_string_position(self):

def test_hline_dimension_values(self):
hline = HLine(0)
self.assertEqual(hline.range(0), (np.NaN, np.NaN))
self.assertTrue(all(not np.isfinite(v) for v in hline.range(0)))
self.assertEqual(hline.range(1), (0, 0))

def test_vline_dimension_values(self):
hline = VLine(0)
self.assertEqual(hline.range(0), (0, 0))
self.assertEqual(hline.range(1), (np.NaN, np.NaN))
self.assertTrue(all(not np.isfinite(v) for v in hline.range(1)))

def test_arrow_redim_range_aux(self):
annotations = Arrow(0, 0)
Expand Down

0 comments on commit 5a9d550

Please sign in to comment.