Build a two-node folder_cache. Return it and the root uid.
()
| 23 | |
| 24 | |
| 25 | def 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 | |
| 38 | def create_fake_params(): |
no test coverage detected