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

Method test_find_existing_object

tests/integration/test_gameobject.py:17–21  ·  view source on GitHub ↗
(self, gameobject: GameObjectAPI)

Source from the content-addressed store, hash-verified

15 assert isinstance(actual["objects"], list)
16
17 def test_find_existing_object(self, gameobject: GameObjectAPI) -> None:
18 actual = gameobject.find(name="Main Camera")
19
20 names = [go["name"] for go in actual["objects"]]
21 assert "Main Camera" in names
22
23 def test_find_nonexistent_returns_empty(self, gameobject: GameObjectAPI) -> None:
24 actual = gameobject.find(name="NonExistentObject_12345")

Callers

nothing calls this directly

Calls 1

findMethod · 0.80

Tested by

no test coverage detected