diff options
Diffstat (limited to 'share/extensions/tests/test_guides_creator.py')
-rw-r--r-- | share/extensions/tests/test_guides_creator.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/share/extensions/tests/test_guides_creator.py b/share/extensions/tests/test_guides_creator.py new file mode 100644 index 0000000..4d927fb --- /dev/null +++ b/share/extensions/tests/test_guides_creator.py @@ -0,0 +1,20 @@ +#!/usr/bin/env python +# coding=utf-8 +from guides_creator import GuidesCreator +from inkex.tester import ComparisonMixin, InkscapeExtensionTestMixin, TestCase +from inkex.tester.filters import CompareNumericFuzzy + +class GuidesCreatorBasicTest(ComparisonMixin, InkscapeExtensionTestMixin, TestCase): + effect_class = GuidesCreator + compare_file = 'svg/guides.svg' + compare_filters = [CompareNumericFuzzy(),] + + comparisons = [ + ('--tab=regular_guides', '--guides_preset=custom'), + ('--tab=regular_guides', '--guides_preset=golden', '--delete=True'), + ('--tab=regular_guides', '--guides_preset=5;5', '--start_from_edges=True'), + ('--tab=diagonal_guides',), + ('--tab=margins', '--start_from_edges=True', '--margins_preset=custom'), + ('--tab=margins', '--start_from_edges=True', '--margins_preset=book_left'), + ('--tab=margins', '--start_from_edges=True', '--margins_preset=book_right'), + ] |