Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Keeper-Security/Commander
/ MockDeviceResponse
Class
MockDeviceResponse
unit-tests/test_command_device_management.py:56–60 ·
view source on GitHub ↗
Mock device response for testing.
Source
from the content-addressed store, hash-verified
54
55
56
class
MockDeviceResponse:
57
""
"Mock device response for testing."
""
58
59
def
__init__(self, device_groups):
60
self.deviceGroups = device_groups
61
62
63
class
MockAdminDeviceResponse:
Callers
7
test_execute_success_table_format
Method · 0.85
test_execute_success_json_format
Method · 0.85
test_execute_no_devices
Method · 0.85
test_execute_success
Method · 0.85
test_execute_no_matching_devices
Method · 0.85
test_execute_success
Method · 0.85
test_execute_no_matching_device
Method · 0.85
Calls
no outgoing calls
Tested by
7
test_execute_success_table_format
Method · 0.68
test_execute_success_json_format
Method · 0.68
test_execute_no_devices
Method · 0.68
test_execute_success
Method · 0.68
test_execute_no_matching_devices
Method · 0.68
test_execute_success
Method · 0.68
test_execute_no_matching_device
Method · 0.68