Skip to content

Commit

Permalink
Make tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
Insoleet committed Jan 15, 2016
1 parent 70563e2 commit 964d5cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/sakia/tests/unit/gui/views/test_explorer_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ def test_bounding_rect(self, painter, widget):
async def exec_test():
node = ExplorerNode(("A", metadata), QPointF(0, 0), nx_pos, 0, 1)
bounding_rect = node.boundingRect()
self.assertAlmostEqual(bounding_rect.x(), -0.5, delta=5)
self.assertAlmostEqual(bounding_rect.y(), -0.5, delta=5)
self.assertAlmostEqual(bounding_rect.width(), 19.59375, delta=5)
self.assertAlmostEqual(bounding_rect.height(), 37.0, delta=5)
self.assertAlmostEqual(bounding_rect.x(), -0.5, delta=15)
self.assertAlmostEqual(bounding_rect.y(), -0.5, delta=15)
self.assertAlmostEqual(bounding_rect.width(), 19.59375, delta=15)
self.assertAlmostEqual(bounding_rect.height(), 37.0, delta=15)

self.lp.run_until_complete(exec_test())
4 changes: 2 additions & 2 deletions src/sakia/tests/unit/gui/views/test_wot_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ async def exec_test():
bounding_rect = node.boundingRect()
self.assertAlmostEqual(bounding_rect.x(), -0.5, delta=1)
self.assertAlmostEqual(bounding_rect.y(), -0.5, delta=1)
self.assertAlmostEqual(bounding_rect.width(), 19.59375, delta=5)
self.assertAlmostEqual(bounding_rect.height(), 37.0, delta=5)
self.assertAlmostEqual(bounding_rect.width(), 19.59375, delta=15)
self.assertAlmostEqual(bounding_rect.height(), 37.0, delta=15)

self.lp.run_until_complete(exec_test())

0 comments on commit 964d5cd

Please sign in to comment.