From cca66b9ec4e494c1d919bff0f71a820d8afab1fa Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 20:24:48 +0200 Subject: Adding upstream version 1.2.2. Signed-off-by: Daniel Baumann --- share/extensions/tests/test_replace_font.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 share/extensions/tests/test_replace_font.py (limited to 'share/extensions/tests/test_replace_font.py') diff --git a/share/extensions/tests/test_replace_font.py b/share/extensions/tests/test_replace_font.py new file mode 100644 index 0000000..2150ac9 --- /dev/null +++ b/share/extensions/tests/test_replace_font.py @@ -0,0 +1,26 @@ +# coding=utf-8 +from replace_font import ReplaceFont +from inkex.tester import ComparisonMixin, InkscapeExtensionTestMixin, TestCase +from inkex.tester.filters import CompareOrderIndependentStyle +from inkex.tester.filters import WindowsTextCompat + + +class TestReplaceFontBasic(ComparisonMixin, InkscapeExtensionTestMixin, TestCase): + effect_class = ReplaceFont + compare_filters = [CompareOrderIndependentStyle()] + comparisons = [ + ( + "--action=find_replace", + "--fr_find=sans-serif", + "--fr_replace=monospace", + ) + ] + + +class TestFontList(ComparisonMixin, TestCase): + effect_class = ReplaceFont + comparisons = [ + ("--action=list_only",), + ] + stderr_output = True + compare_filters = [WindowsTextCompat()] -- cgit v1.2.3