File: test_grid_cartesian.py

package info (click to toggle)
inkscape 1.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 320,944 kB
  • sloc: cpp: 532,425; ansic: 59,393; python: 51,398; javascript: 3,864; xml: 2,708; sh: 2,426; perl: 614; makefile: 431
file content (31 lines) | stat: -rw-r--r-- 923 bytes parent folder | download | duplicates (3)
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
# coding=utf-8
from grid_cartesian import GridCartesian
from inkex.tester import ComparisonMixin, InkscapeExtensionTestMixin, TestCase
from inkex.tester.filters import CompareOrderIndependentStyle


class GridCartesianBasicTest(ComparisonMixin, InkscapeExtensionTestMixin, TestCase):
    effect_class = GridCartesian
    compare_filters = [CompareOrderIndependentStyle()]
    old_defaults = [
        "--border_th=3",
        "--border_th_unit=cm",
        "--dx=100.0",
        "--dx_unit=cm",
        "--x_subdivs=2",
        "--x_subsubdivs=5",
        "--x_half_freq=4",
        "--x_divs_th=2",
        "--x_subdivs_th=1",
        "--x_div_unit=cm",
        "--dy=100.0",
        "--dy_unit=cm",
        "--y_half_freq=4",
        "--y_divs_th=2",
        "--y_subdivs_th=1",
        "--y_div_unit=cm",
    ]
    comparisons = [
        tuple(old_defaults),
        tuple(old_defaults + ["--id=p1", "--id=r3"]),
    ]