summaryrefslogtreecommitdiffstats
path: root/share/extensions/tests/test_inkex_inx.py
blob: 3cf03c106212034e6ea50f9b977a62adf3d245ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env python
# coding=utf-8
"""
Test elements extra logic from svg xml lxml custom classes.
"""

import os
from glob import glob

from inkex.utils import PY3
from inkex.tester import TestCase
from inkex.tester.inx import InxMixin

class InxTestCase(InxMixin, TestCase):
    """Test INX files"""
    def test_inx_files(self):
        """Get all inx files and test each of them"""
        if not PY3:
            self.skipTest("No INX testing in python2")
            return
        for inx_file in glob(os.path.join(self._testdir(), '..', '*.inx')):
            self.assertInxIsGood(inx_file)