make test run faster

This commit is contained in:
2026-07-08 10:46:14 +08:00
parent 268483577e
commit 591e786a0d
6 changed files with 104 additions and 120 deletions

View File

@@ -1,7 +1,6 @@
"""Tests for SceneGraph node selection and geometry/material tools."""
import pytest
import time
class TestSceneGraph:
@@ -21,7 +20,7 @@ class TestSceneGraph:
@pytest.mark.probe
def test_select_scenegraph_node(self, connected_bridge):
connected_bridge.call_tool("selectQuickWindow", {"index": 0})
time.sleep(1)
nodes = connected_bridge.call_tool("listScenegraphNodes")
# Find first Geometry Node
@@ -47,7 +46,7 @@ class TestSceneGraph:
@pytest.mark.probe
def test_get_node_vertices(self, connected_bridge):
connected_bridge.call_tool("selectQuickWindow", {"index": 0})
time.sleep(1)
nodes = connected_bridge.call_tool("listScenegraphNodes")
def find_geo(items_list):
@@ -71,7 +70,7 @@ class TestSceneGraph:
@pytest.mark.probe
def test_get_node_adjacency(self, connected_bridge):
connected_bridge.call_tool("selectQuickWindow", {"index": 0})
time.sleep(1)
nodes = connected_bridge.call_tool("listScenegraphNodes")
def find_geo(items_list):
@@ -94,7 +93,7 @@ class TestSceneGraph:
@pytest.mark.probe
def test_get_material_shaders(self, connected_bridge):
connected_bridge.call_tool("selectQuickWindow", {"index": 0})
time.sleep(1)
nodes = connected_bridge.call_tool("listScenegraphNodes")
def find_geo(items_list):
@@ -118,7 +117,7 @@ class TestSceneGraph:
@pytest.mark.probe
def test_get_material_properties(self, connected_bridge):
connected_bridge.call_tool("selectQuickWindow", {"index": 0})
time.sleep(1)
nodes = connected_bridge.call_tool("listScenegraphNodes")
def find_geo(items_list):