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

Method test_command_creation

tests/test_command_system.py:50–55  ·  view source on GitHub ↗

Test basic command creation and properties.

(self)

Source from the content-addressed store, hash-verified

48 """Test the CommandBase abstract class and basic functionality."""
49
50 def test_command_creation(self):
51 """Test basic command creation and properties."""
52 cmd = MockCommand("Test Command")
53 self.assertEqual(cmd.get_description(), "Test Command")
54 self.assertFalse(cmd.is_executed())
55 self.assertFalse(cmd.is_undone())
56
57 def test_command_execution(self):
58 """Test command execution tracking."""

Callers

nothing calls this directly

Calls 4

is_executedMethod · 0.80
is_undoneMethod · 0.80
MockCommandClass · 0.70
get_descriptionMethod · 0.45

Tested by

no test coverage detected