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

Method test_play_sends_playmode_command

tests/test_editor_api.py:27–33  ·  view source on GitHub ↗

Send 'playmode' as the command name.

(self, sut: EditorAPI, mock_conn: MagicMock)

Source from the content-addressed store, hash-verified

25 """play() メソッドのテスト"""
26
27 def test_play_sends_playmode_command(self, sut: EditorAPI, mock_conn: MagicMock) -> None:
28 """Send 'playmode' as the command name."""
29 mock_conn.send_request.return_value = {}
30
31 sut.play()
32
33 assert mock_conn.send_request.call_args[0][0] == "playmode"
34
35 def test_play_sends_enter_action(self, sut: EditorAPI, mock_conn: MagicMock) -> None:
36 """Send action='enter' to enter play mode."""

Callers

nothing calls this directly

Calls 1

playMethod · 0.80

Tested by

no test coverage detected