add test for dynamic config attributes (import my.cfg as config)

This commit is contained in:
Dima Gerasimov 2020-05-04 20:56:11 +01:00 committed by karlicoss
parent fe763c3c04
commit 4cceccd787
6 changed files with 72 additions and 4 deletions

View file

@ -26,6 +26,7 @@ def _org_files_in(ppp: Path, archived: bool=False) -> Iterator[Path]:
def org_files(roots=config.roots, archived: bool=False) -> Iterator[Path]:
# TODO rename to 'paths'? use get_files?
for p in config.roots:
yield from _org_files_in(Path(p), archived=archived)