MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / setUp

Method setUp

unit-tests/service/test_command.py:44–52  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

42
43class TestCommandAPI(TestCase):
44 def setUp(self):
45 self.app = Flask(__name__)
46 self.client = self.app.test_client()
47
48 @self.app.route('/api/v1/executecommand', methods=['POST'])
49 def execute_command():
50 command = "ls"
51 response, status_code = CommandExecutor.execute(command)
52 return {'response': response}, status_code
53
54 def test_validate_command(self):
55 """Test command validation"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected