From 35a96bde514a8897f6f0fcc41c5833bf63df2e2a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 18:29:01 +0200 Subject: Adding upstream version 1.0.2. Signed-off-by: Daniel Baumann --- share/extensions/tests/test_replace_font.py | 18 ++++++++++++++++++ 1 file changed, 18 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..cbd68c4 --- /dev/null +++ b/share/extensions/tests/test_replace_font.py @@ -0,0 +1,18 @@ +# coding=utf-8 +from replace_font import ReplaceFont +from inkex.tester import ComparisonMixin, InkscapeExtensionTestMixin, TestCase +from inkex.tester.filters import CompareOrderIndependentStyle + +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 -- cgit v1.2.3