summaryrefslogtreecommitdiffstats
path: root/share/extensions/tests/test_printing_marks.py
blob: f8698f2e30fe1ef09ee523655e9437d721acd5d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# coding=utf-8
from printing_marks import PrintingMarks
from inkex.tester import ComparisonMixin, InkscapeExtensionTestMixin, TestCase
from inkex.tester.filters import (
    CompareNumericFuzzy,
    CompareWithPathSpace,
    CompareOrderIndependentStyle,
)


class PrintingMarksBasicTest(ComparisonMixin, InkscapeExtensionTestMixin, TestCase):
    effect_class = PrintingMarks
    compare_filters = [
        CompareNumericFuzzy(),
        CompareWithPathSpace(),
        CompareOrderIndependentStyle(),
    ]
    compare_file = "svg/shapes.svg"
    comparisons = {
        (
            "--crop_marks",
            "True",
            "--bleed_marks",
            "True",
            "--registration_marks",
            "True",
            "--star_target",
            "True",
            "--colour_bars",
            "True",
            "--page_info",
            "True",
        )
    }