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

Method test_command_execution

tests/test_command_system.py:57–63  ·  view source on GitHub ↗

Test command execution tracking.

(self)

Source from the content-addressed store, hash-verified

55 self.assertFalse(cmd.is_undone())
56
57 def test_command_execution(self):
58 """Test command execution tracking."""
59 cmd = MockCommand()
60 self.assertTrue(cmd.execute())
61 cmd._mark_executed()
62 self.assertTrue(cmd.is_executed())
63 self.assertFalse(cmd.is_undone())
64
65 def test_command_undo(self):
66 """Test command undo tracking."""

Callers

nothing calls this directly

Calls 5

executeMethod · 0.95
_mark_executedMethod · 0.80
is_executedMethod · 0.80
is_undoneMethod · 0.80
MockCommandClass · 0.70

Tested by

no test coverage detected