From 0077e022cebc6b4bb7ee75cb61212d8d7f6ac671 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Tue, 23 Jul 2019 13:24:39 +0200 Subject: [PATCH] Renamed some small test classes so they don't cause pytest warnings Pytest thought that they were tests, since their name started with test --- tests/TestCuraSceneNode.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/TestCuraSceneNode.py b/tests/TestCuraSceneNode.py index d4c1809c1e..47a4dc3cb0 100644 --- a/tests/TestCuraSceneNode.py +++ b/tests/TestCuraSceneNode.py @@ -6,7 +6,7 @@ import pytest from unittest.mock import patch -class TestConvexHullDecorator(SceneNodeDecorator): +class MockedConvexHullDecorator(SceneNodeDecorator): def __init__(self): super().__init__() @@ -14,7 +14,7 @@ class TestConvexHullDecorator(SceneNodeDecorator): return Polygon([[5, 5], [-5, 5], [-5, -5], [5, -5]]) -class TestInvalidConvexHullDecorator(SceneNodeDecorator): +class InvalidConvexHullDecorator(SceneNodeDecorator): def __init__(self): super().__init__() @@ -34,16 +34,16 @@ class TestCollidesWithAreas: assert not cura_scene_node.collidesWithAreas([Polygon([[10, 10], [-10, 10], [-10, -10], [10, -10]])]) def test_convexHullIntersects(self, cura_scene_node): - cura_scene_node.addDecorator(TestConvexHullDecorator()) + cura_scene_node.addDecorator(MockedConvexHullDecorator()) assert cura_scene_node.collidesWithAreas([Polygon([[10, 10], [-10, 10], [-10, -10], [10, -10]])]) def test_convexHullNoIntersection(self, cura_scene_node): - cura_scene_node.addDecorator(TestConvexHullDecorator()) + cura_scene_node.addDecorator(MockedConvexHullDecorator()) assert not cura_scene_node.collidesWithAreas([Polygon([[60, 60], [40, 60], [40, 40], [60, 40]])]) def test_invalidConvexHull(self, cura_scene_node): - cura_scene_node.addDecorator(TestInvalidConvexHullDecorator()) + cura_scene_node.addDecorator(InvalidConvexHullDecorator()) assert not cura_scene_node.collidesWithAreas([Polygon([[10, 10], [-10, 10], [-10, -10], [10, -10]])])