MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / test_resource_node_list

Function test_resource_node_list

test/python/pipeline_test.py:135–145  ·  view source on GitHub ↗

测试 Resource.node_list 获取所有节点名列表

(resource: Resource)

Source from the content-addressed store, hash-verified

133
134
135def test_resource_node_list(resource: Resource):
136 """测试 Resource.node_list 获取所有节点名列表"""
137 print("\n=== test_resource_node_list ===")
138
139 node_list = resource.node_list
140 assert_true(isinstance(node_list, list), "node_list should be list")
141 assert_true(len(node_list) > 0, "node_list should not be empty")
142 assert_true("TestBasic" in node_list, "TestBasic should be in node_list")
143
144 print(f" Found {len(node_list)} nodes: {node_list[:5]}...")
145 print(" PASS: resource.node_list")
146
147
148# ============================================================================

Callers 1

pipeline_node_testFunction · 0.85

Calls 1

assert_trueFunction · 0.85

Tested by

no test coverage detected