From 271ea4749054d63a890c86a43009ab482ec75c71 Mon Sep 17 00:00:00 2001 From: Mario Voigt Date: Sat, 24 May 2025 11:22:39 +0200 Subject: [PATCH] add some test stuff for Jonathan --- .../apply_transformations/__init__.py | 0 .../tests/data/svg/complextransform.test.svg | 71 +++++++++++++++++++ .../tests/test_apply_transformations.py | 18 +++++ 3 files changed, 89 insertions(+) create mode 100644 extensions/fablabchemnitz/apply_transformations/__init__.py create mode 100644 extensions/fablabchemnitz/apply_transformations/tests/data/svg/complextransform.test.svg create mode 100644 extensions/fablabchemnitz/apply_transformations/tests/test_apply_transformations.py diff --git a/extensions/fablabchemnitz/apply_transformations/__init__.py b/extensions/fablabchemnitz/apply_transformations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/extensions/fablabchemnitz/apply_transformations/tests/data/svg/complextransform.test.svg b/extensions/fablabchemnitz/apply_transformations/tests/data/svg/complextransform.test.svg new file mode 100644 index 0000000..478f850 --- /dev/null +++ b/extensions/fablabchemnitz/apply_transformations/tests/data/svg/complextransform.test.svg @@ -0,0 +1,71 @@ + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/extensions/fablabchemnitz/apply_transformations/tests/test_apply_transformations.py b/extensions/fablabchemnitz/apply_transformations/tests/test_apply_transformations.py new file mode 100644 index 0000000..e301c0a --- /dev/null +++ b/extensions/fablabchemnitz/apply_transformations/tests/test_apply_transformations.py @@ -0,0 +1,18 @@ +# coding=utf-8 +from apply_transformations import ApplyTransformations +from inkex.tester import ComparisonMixin, TestCase +from inkex.tester.filters import CompareNumericFuzzy, CompareWithPathSpace + + +class ApplyTransformations(ComparisonMixin, TestCase): + effect_class = AddNodes + comparisons = [ + tuple() + ] + compare_file = "complextransforms.test.svg" + compare_filters = [ + CompareWithPathSpace(), + CompareNumericFuzzy(), + ] + +