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

Method setUp

tests/test_undo_ui_integration.py:64–76  ·  view source on GitHub ↗

Set up test fixtures.

(self)

Source from the content-addressed store, hash-verified

62 cls.app = QApplication.instance()
63
64 def setUp(self):
65 """Set up test fixtures."""
66 self.command_history = CommandHistory()
67
68 # Add some test commands
69 self.cmd1 = MockCommand("Create Node A")
70 self.cmd2 = MockCommand("Delete Node B")
71 self.cmd3 = MockCommand("Move Node C")
72
73 # Execute commands to populate history
74 self.command_history.execute_command(self.cmd1)
75 self.command_history.execute_command(self.cmd2)
76 self.command_history.execute_command(self.cmd3)
77
78 def test_dialog_initialization(self):
79 """Test dialog initializes correctly."""

Callers

nothing calls this directly

Calls 3

CommandHistoryClass · 0.90
MockCommandClass · 0.70
execute_commandMethod · 0.45

Tested by

no test coverage detected