| Conditions | 3 |
| Total Lines | 14 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | #!/usr/bin/env python3 |
||
| 17 | def test_methods(self): |
||
| 18 | """Invoke all commands.""" |
||
| 19 | parser = self.things3_cli.get_parser() |
||
| 20 | for command in parser._subparsers._actions[1].choices: # pylint: disable=W0212 |
||
| 21 | if command != "feedback": |
||
| 22 | args = parser.parse_args([command]) |
||
| 23 | new_out = io.StringIO() |
||
| 24 | old_out = sys.stdout |
||
| 25 | try: |
||
| 26 | sys.stdout = new_out |
||
| 27 | self.things3_cli.main(args) |
||
| 28 | finally: |
||
| 29 | sys.stdout = old_out |
||
| 30 | self.assertIn(" ", new_out.getvalue()) |
||
| 31 | |||
| 71 |