Extra test for MY_CONFIG variable; fix order import for stub/dynamic config

This commit is contained in:
Dima Gerasimov 2020-05-05 08:18:08 +01:00 committed by karlicoss
parent 636060db57
commit 6d1fba2171
4 changed files with 61 additions and 30 deletions

View file

@ -13,7 +13,7 @@ commands =
# python -m pytest {posargs}
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
python3 -m pytest tests/misc.py tests/get_files.py tests/config.py::test_set_repo tests/config.py::test_environment_variable
# 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