inkex.tester.inx module
Test elements extra logic from svg xml lxml custom classes.
-
class inkex.tester.inx.InxMixin[source]
Bases: object
Tools for Testing INX files, use as a mixin class:
- class MyTests(InxMixin, TestCase):
- def test_inx_file(self):
self.assertInxIsGood(“some_inx_file.inx”)
-
assertInxIsGood(inx_file)[source]
Test the inx file for consistancy and correctness
-
assertParams(inx, cls)[source]
Confirm the params in the inx match the python script
Changed in version 1.2: Also checks that the default values are identical
-
introspect_arg_parser(arg_parser)[source]
Pull apart the arg parser to find out what we have in it
-
static introspect_action(action)[source]
Pull apart a single action to get at the juicy insides
-
static parse_param(param)[source]
Pull apart the param element in the inx file
-
assertInxSchemaValid(inx_file)[source]
Validate inx file schema.
-
inkex.tester.inx._load_inx_schemas()[source]