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

Method shared

unit-tests/test_command_register.py:48–64  ·  view source on GitHub ↗
(params, record_uids, is_share_admin)

Source from the content-addressed store, hash-verified

46 self.assertEqual(len(TestRegister.expected_commands), 0)
47
48 def shared(params, record_uids, is_share_admin):
49 return [{
50 'shares': {
51 'user_permissions': [
52 {
53 'username': params.user,
54 'owner': True,
55 },
56 {
57 'username': 'user2@keepersecurity.com',
58 'owner': False,
59 'shareable': False,
60 'editable': False
61 }
62 ]
63 }
64 }]
65 self.record_share_mock.side_effect = shared
66
67 TestRegister.expected_commands.extend(['records_share_update'])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected