blob: c9d6a472065600cd702c0d78196f6bfdc751f09c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# coding=utf-8
import re
from synfig_output import SynfigExport
from inkex.tester import ComparisonMixin, TestCase
from inkex.tester.filters import Compare, CompareNumericFuzzy
class CompareWithoutGuids(Compare):
"""
Remove guid attributes
"""
@staticmethod
def filter(contents):
contents = re.sub(b'guid="[0-9a-f]{32}"', b"", contents)
return contents
class TestSynfigExportBasic(ComparisonMixin, TestCase):
effect_class = SynfigExport # Inkscape call 9f18b1246e864e6f3945f8cd64d6ca14
compare_filters = [CompareWithoutGuids(), CompareNumericFuzzy()]
comparisons = [()]
|