fix(backup): retirer users.sqlite du suivi git, logging, test restore CLI, garde snapshot (#89)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Colin Maudry
2026-06-24 17:45:40 +02:00
parent 02df6c10a0
commit ac3ba89c0a
7 changed files with 42 additions and 5 deletions
+11
View File
@@ -33,3 +33,14 @@ def test_backup_then_list(tmp_path, capsys):
out = capsys.readouterr().out
assert "users-" in out
assert len(storage.objects) == 1
def test_restore(tmp_path):
env = _env(tmp_path)
storage = FakeStorage()
# Create a backup first
assert cli.main(["backup"], env=env, storage=storage) == 0
key = next(iter(storage.objects))
# Restore it
ret = cli.main(["restore", key], env=env, storage=storage)
assert ret == 0