Aggiunge GUI di configurazione

This commit is contained in:
2026-07-01 08:59:06 +02:00
parent 8f624f5b97
commit 118f01f81a
8 changed files with 418 additions and 2 deletions

14
tests/test_config_save.py Normal file
View File

@@ -0,0 +1,14 @@
from __future__ import annotations
from pathlib import Path
from bakrest.config import load_config_data, save_config_data
def test_save_config_data_round_trips(tmp_path: Path) -> None:
path = tmp_path / "config.toml"
data = {"watch": {"include_dirs": [str(tmp_path)], "include_extensions": [".jpg"]}}
save_config_data(data, path)
assert load_config_data(path) == data