added a proper exposed config folder to ensure tests can be re-ran
This commit is contained in:
1 parent
e9cbacbc92
commit
b329e3f594
6 files changed
+60
-18
No files matched your search
@@ -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))
|
||||
Reference in new issue
Block a user