Conditions | 4 |
Total Lines | 19 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | #!/usr/bin/env python3 |
||
42 | def tests(self): |
||
43 | |||
44 | for spec in [ |
||
45 | 'ansible.plugins.test.core', |
||
46 | 'ansible.plugins.test.files', |
||
47 | 'ansible.plugins.test.mathstuff', |
||
48 | ]: |
||
49 | |||
50 | mod = importlib.import_module(spec) |
||
51 | |||
52 | if hasattr(mod, 'TestModule'): |
||
53 | _tests = mod.TestModule().tests() |
||
54 | for k,v in _tests.items(): |
||
55 | self._tests.update( { |
||
56 | k: [ "{}.{}".format(spec, k), v ] |
||
57 | } ) |
||
58 | |||
59 | del mod |
||
60 | return self._tests |
||
61 |