summaryrefslogtreecommitdiffstats
path: root/share/extensions/tests/test_template.py
blob: bb732052e62923b37b1c5b09e9975bd2fce00480 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# coding=utf-8
from template import InxDefinedTemplate
from inkex.tester import ComparisonMixin, TestCase

class TemplateTestCase(ComparisonMixin, TestCase):
    effect_class = InxDefinedTemplate
    compare_file = 'svg/empty.svg'
    comparisons = [
        ('--size=custom', '--width=100', '--height=100', '--unit=in'),
        ('--size=100x50', '--grid=true', '--orientation=horizontal'),
        ('--size=100x50', '--grid=true', '--orientation=vertical'),
        ('--size=5mmx15mm', '--background=black', '--noborder=true'),
    ]