(self)
| 523 | ) |
| 524 | |
| 525 | def test_create_help_command(self): |
| 526 | # When we generate the HTML docs, we don't actually run |
| 527 | # commands, we just call the create_help_command methods. |
| 528 | # We want to make sure that in this case, the corresponding |
| 529 | # building-command-table events are fired. |
| 530 | # The test above will prove that is true when running a command. |
| 531 | # This test proves it is true when generating the HTML docs. |
| 532 | self.emitter.emit.return_value = [] |
| 533 | self.session.emitter = self.emitter |
| 534 | driver = CLIDriver(session=self.session) |
| 535 | main_hc = driver.create_help_command() |
| 536 | command = main_hc.command_table['s3'] |
| 537 | command.create_help_command() |
| 538 | self.assert_events_fired_in_order( |
| 539 | [ |
| 540 | # Events fired while parser is being created. |
| 541 | 'building-command-table.main', |
| 542 | 'building-top-level-params', |
| 543 | 'building-command-table.s3', |
| 544 | ] |
| 545 | ) |
| 546 | |
| 547 | def test_unknown_command_suggests_help(self): |
| 548 | driver = CLIDriver( |
nothing calls this directly
no test coverage detected