Aggiunge GUI di configurazione
This commit is contained in:
14
tests/test_config_save.py
Normal file
14
tests/test_config_save.py
Normal 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
|
||||
Reference in New Issue
Block a user