summaryrefslogtreecommitdiffstats
path: root/share/extensions/tests/test_replace_font.py
diff options
context:
space:
mode:
Diffstat (limited to 'share/extensions/tests/test_replace_font.py')
-rw-r--r--share/extensions/tests/test_replace_font.py18
1 files changed, 18 insertions, 0 deletions
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