Test that the tool controller looks the way we expect it to.
(mock_tool_has_extra_folder)
| 190 | def test_tool_controller_str(mock_tool_has_extra_folder): |
| 191 | """ |
| 192 | Test that the tool controller looks the way we expect it to. |
| 193 | """ |
| 194 | expected = textwrap.dedent( |
| 195 | """ |
| 196 | index | Tool |
| 197 | -------|---------- |
| 198 | [0] edit_scripts |
| 199 | [1] normal_mod |
| 200 | """ |
| 201 | ) |
| 202 | with AmmoToolController() as controller: |
| 203 | # Tools get ordered alphabetically, not by install order. |
| 204 | # This ensures the same order persists through different sessions. |
| 205 | extract_tool(controller, "normal_mod") |
| 206 | extract_tool(controller, "edit_scripts") |
| 207 | |
| 208 | assert str(controller).endswith(expected) |
nothing calls this directly
no test coverage detected
searching dependent graphs…