feat: add import command
This commit is contained in:
parent
d37bffdc51
commit
be20284f78
9 changed files with 133 additions and 10 deletions
|
|
@ -29,6 +29,24 @@ def notes(notebooks_path: Path):
|
|||
dt = dt.subtract(days=day_offset)
|
||||
(dailies / f"{dt.date()}.age").touch()
|
||||
|
||||
@pytest.fixture()
|
||||
def unencrypted_notes(notebooks_path):
|
||||
unencrypted_root_path = notebooks_path / "unencrypted"
|
||||
unencrypted_root_path.mkdir()
|
||||
for i in range(5):
|
||||
note = unencrypted_root_path / f"note_{i}.md"
|
||||
note.touch()
|
||||
subnote_path = unencrypted_root_path / f"inner_{i}"
|
||||
subnote_path.mkdir()
|
||||
for j in range(2):
|
||||
subnote = subnote_path / f"note_{i}_{j}.md"
|
||||
subnote.touch()
|
||||
with subnote.open("w") as f:
|
||||
f.write(f"subnote {i} {j}")
|
||||
with note.open("w") as f:
|
||||
f.write(f"note {i}")
|
||||
return unencrypted_root_path
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def notebooks_command(settings: Settings):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue