(self)
| 555 | |
| 556 | class TestModelIndexCompleter(unittest.TestCase): |
| 557 | def setUp(self): |
| 558 | cli_driver = CLIDriver() |
| 559 | self.cli_fetcher = fetcher.CliDriverFetcher(cli_driver) |
| 560 | self.index = InMemoryIndex( |
| 561 | { |
| 562 | 'command_names': { |
| 563 | '': [('aws', None)], |
| 564 | }, |
| 565 | 'arg_names': { |
| 566 | '': { |
| 567 | 'aws': ['region', 'endpoint-url'], |
| 568 | }, |
| 569 | }, |
| 570 | 'arg_data': { |
| 571 | '': { |
| 572 | 'aws': { |
| 573 | 'endpoint-url': ( |
| 574 | 'endpoint-url', |
| 575 | 'string', |
| 576 | 'aws', |
| 577 | '', |
| 578 | None, |
| 579 | False, |
| 580 | False, |
| 581 | ), |
| 582 | 'region': ( |
| 583 | 'region', |
| 584 | 'string', |
| 585 | 'aws', |
| 586 | '', |
| 587 | None, |
| 588 | False, |
| 589 | False, |
| 590 | ), |
| 591 | } |
| 592 | } |
| 593 | }, |
| 594 | } |
| 595 | ) |
| 596 | self.parser = parser.CLIParser(self.index) |
| 597 | self.completer = basic.ModelIndexCompleter( |
| 598 | self.index, cli_driver_fetcher=self.cli_fetcher |
| 599 | ) |
| 600 | |
| 601 | def test_returns_help_text_for_params_in_global_scope(self): |
| 602 | parsed = self.parser.parse('aws --re') |
nothing calls this directly
no test coverage detected