| Total Complexity | 4 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | #!/usr/bin/env python |
||
| 15 | class TestPlumd(TestCommand): |
||
| 16 | """Unit tests currently broken/not created. todo.""" |
||
| 17 | user_options = [('tox-args=', 'a', "Arguments to pass to tox")] |
||
| 18 | |||
| 19 | def initialize_options(self): |
||
| 20 | """Broken. todo.""" |
||
| 21 | TestCommand.initialize_options(self) |
||
| 22 | self.tox_args = None |
||
| 23 | |||
| 24 | def finalize_options(self): |
||
| 25 | """Broken. todo.""" |
||
| 26 | TestCommand.finalize_options(self) |
||
| 27 | self.test_args = [] |
||
| 28 | self.test_suite = True |
||
| 29 | |||
| 30 | def run_tests(self): |
||
| 31 | """Broken. todo.""" |
||
| 32 | #import here, cause outside the eggs aren't loaded |
||
| 33 | import tox |
||
| 34 | import shlex |
||
| 35 | args = self.tox_args |
||
| 36 | if args: |
||
| 37 | args = shlex.split(self.tox_args) |
||
| 38 | errno = tox.cmdline(args=args) |
||
| 39 | sys.exit(errno) |
||
| 40 | |||
| 45 |