MCPcopy Index your code
hub / github.com/bhowiebkr/PyFlowGraph / setUp

Method setUp

tests/test_connection_system.py:46–75  ·  view source on GitHub ↗

Set up test fixtures before each test.

(self)

Source from the content-addressed store, hash-verified

44 cls.app = QApplication.instance()
45
46 def setUp(self):
47 """Set up test fixtures before each test."""
48 self.graph = NodeGraph()
49
50 # Create test nodes
51 self.node1 = Node("Output Node")
52 self.node2 = Node("Input Node")
53 self.graph.addItem(self.node1)
54 self.graph.addItem(self.node2)
55
56 # Position nodes for testing
57 self.node1.setPos(0, 0)
58 self.node2.setPos(300, 0)
59
60 # Create test pins
61 self.output_pin = Pin(
62 node=self.node1,
63 name="output",
64 direction="output",
65 pin_type_str="str",
66 pin_category="data"
67 )
68
69 self.input_pin = Pin(
70 node=self.node2,
71 name="input",
72 direction="input",
73 pin_type_str="str",
74 pin_category="data"
75 )
76
77 def tearDown(self):
78 """Clean up after each test."""

Callers

nothing calls this directly

Calls 3

NodeGraphClass · 0.90
NodeClass · 0.90
PinClass · 0.90

Tested by

no test coverage detected