feat: make the inclusion of each notebook's note optional via --include-notes when listing notebooks
This commit is contained in:
parent
a591fe20e8
commit
3d93be39d6
8 changed files with 632 additions and 512 deletions
|
|
@ -25,12 +25,14 @@ def test_build_tree_max_depth_2(notes, notebooks_command: NotebooksCommand):
|
|||
work = tree.children[1]
|
||||
assert personal.label == "Personal"
|
||||
assert work.label == "Work"
|
||||
assert len(work.children) == 2
|
||||
assert len(personal.children) == 1
|
||||
assert len(work.children) == 1
|
||||
assert len(personal.children) == 0
|
||||
|
||||
|
||||
def test_build_tree_max_depth_inf(notes, notebooks_command: NotebooksCommand):
|
||||
tree = notebooks_command.build_tree(notebooks_command.settings.notebooks_root_path)
|
||||
def test_build_tree_max_depth_inf(notes, settings):
|
||||
tree = NotebooksCommand(max_depth=float("inf"), settings=settings, include_notes=True).build_tree(
|
||||
settings.notebooks_root_path
|
||||
)
|
||||
personal = tree.children[0]
|
||||
work = tree.children[1]
|
||||
assert personal.label == "Personal"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue