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

Function folder_cache

unit-tests/test_subfolder.py:25–35  ·  view source on GitHub ↗

Build a two-node folder_cache. Return it and the root uid.

()

Source from the content-addressed store, hash-verified

23
24
25def folder_cache():
26 """Build a two-node folder_cache. Return it and the root uid."""
27 cd_tests_uid = 'b' * 22
28 cd_tests_bfn = BFN(type='user_folder', uid=cd_tests_uid, parent_uid=None, name='cd-tests', subfolders=[])
29 root_uid = 'a' * 22
30 root_bfn = BFN(type='/', uid=None, parent_uid=None, name='root', subfolders=[cd_tests_uid])
31 dict_ = {
32 root_uid: root_bfn,
33 cd_tests_uid: cd_tests_bfn,
34 }
35 return dict_, root_bfn, cd_tests_bfn
36
37
38def create_fake_params():

Callers 1

create_fake_paramsFunction · 0.85

Calls 1

BFNFunction · 0.85

Tested by

no test coverage detected