1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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'),
]
|