added a proper exposed config folder to ensure tests can be re-ran

This commit is contained in:
ari committed 2022-04-15 15:50:45 -04:00
1 parent e9cbacbc92
commit b329e3f594
6 files changed
+60 -18

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
from pathlib import Path
from typing import Dict, List
from src.yaml_serializer import dump_yaml, load_yaml
class TagManager(Dict[str, List[str]]):
def save(self, path: Path):
path.write_text(dump_yaml(self))
@classmethod
def load(cls, path: Path):
with path.open('r') as fp:
return cls(load_yaml(fp))