diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2025-07-19 22:30:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-19 22:30:15 +0200 |
| commit | ffc0db1ddf2f790fecaa67cdacec87f207e999e8 (patch) | |
| tree | 9938f5a242ca6bb1ac045dd7aed96b6097f6c629 /tests | |
| parent | fdd3dbc956cd9d2be10bcbf4834e47dd89fcb754 (diff) | |
Convert to satin internally (3874)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_elements_utils.py | 8 | ||||
| -rw-r--r-- | tests/test_output.py | 2 | ||||
| -rw-r--r-- | tests/test_threads_color.py | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_elements_utils.py b/tests/test_elements_utils.py index 2c0a64eb..0acc20a8 100644 --- a/tests/test_elements_utils.py +++ b/tests/test_elements_utils.py @@ -2,7 +2,7 @@ from inkex import Group, Rectangle, Style from inkex.tester import TestCase from inkex.tester.svg import svg -from lib.elements import FillStitch, utils +from lib.elements import FillStitch, nodes_to_elements, iterate_nodes from .utils import element_count @@ -30,7 +30,7 @@ class ElementsUtilsTest(TestCase): "height": "10", })) - elements = utils.nodes_to_elements(utils.iterate_nodes(g)) + elements = nodes_to_elements(iterate_nodes(g)) self.assertEqual(len(elements), element_count()) self.assertEqual(type(elements[0]), FillStitch) self.assertEqual(elements[0].node, rect) @@ -43,7 +43,7 @@ class ElementsUtilsTest(TestCase): "height": "10" })) - elements = utils.nodes_to_elements(utils.iterate_nodes(rect)) + elements = nodes_to_elements(iterate_nodes(rect)) self.assertEqual(len(elements), element_count()) self.assertEqual(type(elements[0]), FillStitch) self.assertEqual(elements[0].node, rect) @@ -51,5 +51,5 @@ class ElementsUtilsTest(TestCase): # Now make the element hidden: It shouldn't return an element rect.style = rect.style + Style({"display": "none"}) - elements = utils.nodes_to_elements(utils.iterate_nodes(rect)) + elements = nodes_to_elements(iterate_nodes(rect)) self.assertEqual(len(elements), 0) diff --git a/tests/test_output.py b/tests/test_output.py index afccca7e..9ed63602 100644 --- a/tests/test_output.py +++ b/tests/test_output.py @@ -3,7 +3,7 @@ from inkex.tester import TestCase from inkex.tester.svg import svg from lib import output -from lib.elements.utils import node_to_elements +from lib.elements import node_to_elements from lib.stitch_plan.stitch_plan import stitch_groups_to_stitch_plan from lib.svg.tags import INKSTITCH_ATTRIBS diff --git a/tests/test_threads_color.py b/tests/test_threads_color.py index 075312e6..3e84e8c4 100644 --- a/tests/test_threads_color.py +++ b/tests/test_threads_color.py @@ -2,7 +2,7 @@ from inkex import LinearGradient, Rectangle, Stop, SvgDocumentElement from inkex.tester.svg import svg from lib.elements import EmbroideryElement -from lib.elements.utils import node_to_elements +from lib.elements import node_to_elements from lib.threads.color import ThreadColor |
