15 lines
390 B
Python
15 lines
390 B
Python
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
|