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

Function _side_effect

unit-tests/test_cloud_import.py:52–59  ·  view source on GitHub ↗
(params, record, folder_uid, pb_only=False)

Source from the content-addressed store, hash-verified

50 record_uid bytes match the record UID so the batch response matcher works.
51 """
52 def _side_effect(params, record, folder_uid, pb_only=False):
53 if not record.record_uid:
54 record.record_uid = keeper_utils.generate_uid()
55 captured.append(record)
56 if pb_only:
57 pb = record_pb2.RecordAdd()
58 pb.record_uid = keeper_utils.base64_url_decode(record.record_uid)
59 return pb
60 return _side_effect
61
62

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected