Skip to content

Commit bf92d68

Browse files
authored
Create test_config_validation.py
1 parent 4d942ed commit bf92d68

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

tests/test_config_validation.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from pathlib import Path
2+
from docflow.config import load_config
3+
4+
def test_load_config(tmp_path: Path):
5+
cfg_file = tmp_path / "cfg.toml"
6+
cfg_file.write_text("""
7+
[inbox]
8+
path = "./inbox"
9+
archive_path = "./archive"
10+
""", "utf-8")
11+
cfg = load_config(cfg_file)
12+
assert cfg.inbox.path

0 commit comments

Comments
 (0)