core: add tests for core_config
This commit is contained in:
parent
70c801f692
commit
c79ffb50f6
4 changed files with 69 additions and 25 deletions
16
tox.ini
16
tox.ini
|
@ -1,6 +1,6 @@
|
|||
[tox]
|
||||
minversion = 3.5
|
||||
envlist = py3,mypy,mypy-modules # pylint
|
||||
envlist = py3,mypy,mypy-modules
|
||||
|
||||
# TODO ugh. unclear how to reuse setup.cfg deps in tox
|
||||
[testenv]
|
||||
|
@ -13,7 +13,7 @@ commands =
|
|||
# todo these are probably not necessary anymore?
|
||||
python3 -c 'from my.config import stub as config; print(config.key)'
|
||||
python3 -c 'import my.config; import my.config.repos' # shouldn't fail at least
|
||||
python3 -m pytest tests/misc.py tests/get_files.py tests/config.py::test_set_repo tests/config.py::test_environment_variable tests/demo.py
|
||||
python3 -m pytest tests/core.py tests/misc.py tests/get_files.py tests/config.py::test_set_repo tests/config.py::test_environment_variable tests/demo.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
|
||||
|
@ -48,15 +48,3 @@ skip_install = true
|
|||
commands =
|
||||
pip install -e .[testing] .[optional]
|
||||
./lint
|
||||
|
||||
|
||||
# TODO fix it
|
||||
# [testenv:pylint]
|
||||
# # TODO wtf????
|
||||
# changedir = {toxworkdir}/{envname}/../..
|
||||
# skip_install = true
|
||||
# commands =
|
||||
# pip install -e .[testing]
|
||||
# for now ignore import errors until I figure out how to import everything for CI checking..
|
||||
# TODO FIXME ugh. fix later, after properly switched to my.config
|
||||
# python -m pylint -E -d import-error my
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue