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

@ -14,6 +14,7 @@ commands =
python3 -c 'import my.init; from my.config import stub as config; print(config.key)'
python3 -c 'import my.init; import my.config; import my.config.repos' # shouldn't fail at least
python3 -m pytest tests/misc.py tests/get_files.py
# TODO add; once I figure out porg depdencency?? tests/config.py
# TODO run demo.py? just make sure with_my is a bit cleverer?
# TODO e.g. under CI, rely on installing