From 964d5cd8f7a4b8ef7ea182066705b88b5acce808 Mon Sep 17 00:00:00 2001 From: Inso <insomniak.fr@gmail.com> Date: Fri, 15 Jan 2016 20:08:30 +0100 Subject: [PATCH] Make tests pass --- src/sakia/tests/unit/gui/views/test_explorer_node.py | 8 ++++---- src/sakia/tests/unit/gui/views/test_wot_node.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/sakia/tests/unit/gui/views/test_explorer_node.py b/src/sakia/tests/unit/gui/views/test_explorer_node.py index cd54b19f..e684d5ab 100644 --- a/src/sakia/tests/unit/gui/views/test_explorer_node.py +++ b/src/sakia/tests/unit/gui/views/test_explorer_node.py @@ -72,9 +72,9 @@ class TestExplorerNode(unittest.TestCase, QuamashTest): 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()) diff --git a/src/sakia/tests/unit/gui/views/test_wot_node.py b/src/sakia/tests/unit/gui/views/test_wot_node.py index a92ba2da..6bf361fa 100644 --- a/src/sakia/tests/unit/gui/views/test_wot_node.py +++ b/src/sakia/tests/unit/gui/views/test_wot_node.py @@ -74,7 +74,7 @@ class TestWotNode(unittest.TestCase, QuamashTest): 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()) -- GitLab