MCPcopy Create free account
hub / github.com/bigdra50/unity-cli / test_get_with_stacktrace

Method test_get_with_stacktrace

tests/test_console_api.py:91–98  ·  view source on GitHub ↗

Set include_stacktrace to True when requested.

(self, sut: ConsoleAPI, mock_conn: MagicMock)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected