Return mock sufficient to pass to hyperparser.
| 278 | # The default mocks are what are needed for open_calltip. |
| 279 | |
| 280 | class mock_Shell: |
| 281 | "Return mock sufficient to pass to hyperparser." |
| 282 | def __init__(self, text): |
| 283 | text.tag_prevrange = Mock(return_value=None) |
| 284 | self.text = text |
| 285 | self.prompt_last_line = ">>> " |
| 286 | self.indentwidth = 4 |
| 287 | self.tabwidth = 8 |
| 288 | |
| 289 | |
| 290 | class mock_TipWindow: |
no outgoing calls
searching dependent graphs…