Set include_stacktrace to True when requested.
(self, sut: ConsoleAPI, mock_conn: MagicMock)
| 89 | assert params["search"] == "NullReference" |
| 90 | |
| 91 | def test_get_with_stacktrace(self, sut: ConsoleAPI, mock_conn: MagicMock) -> None: |
| 92 | """Set include_stacktrace to True when requested.""" |
| 93 | mock_conn.send_request.return_value = {} |
| 94 | |
| 95 | sut.get(include_stacktrace=True) |
| 96 | |
| 97 | params = mock_conn.send_request.call_args[0][1] |
| 98 | assert params["include_stacktrace"] is True |
| 99 | |
| 100 | def test_get_with_simple_format(self, sut: ConsoleAPI, mock_conn: MagicMock) -> None: |
| 101 | """Send format='simple' when specified.""" |