MCPcopy Create free account
hub / github.com/bhowiebkr/PyFlowGraph / setUp

Method setUp

tests/test_group_resize.py:250–261  ·  view source on GitHub ↗

Set up test fixtures.

(self)

Source from the content-addressed store, hash-verified

248 """Test ResizeGroupCommand for undo/redo functionality."""
249
250 def setUp(self):
251 """Set up test fixtures."""
252 self.mock_scene = Mock()
253 self.group = Group("Test Group", ["node1", "node2"])
254 self.group.setPos(100, 100)
255 self.group.width = 200
256 self.group.height = 150
257
258 self.old_bounds = QRectF(100, 100, 200, 150)
259 self.new_bounds = QRectF(100, 100, 250, 200)
260 self.old_members = ["node1", "node2"]
261 self.new_members = ["node1", "node2", "node3"]
262
263 def test_command_creation(self):
264 """Test command creation with proper data."""

Callers

nothing calls this directly

Calls 1

GroupClass · 0.90

Tested by

no test coverage detected