core: better support for ad-hoc configs

properly reload/unload the relevant modules so hopefully no more weird hacks should be required

relevant
- https://github.com/karlicoss/promnesia/issues/340
- https://github.com/karlicoss/HPI/issues/46
This commit is contained in:
Dima Gerasimov 2023-02-09 00:13:56 +00:00 committed by karlicoss
parent fb0c1289f0
commit 5ac5636e7f
4 changed files with 104 additions and 8 deletions

View file

@ -20,9 +20,10 @@ passenv =
commands =
pip install -e .[testing]
{envpython} -m pytest \
tests/core.py \
tests/sqlite.py \
tests/get_files.py \
tests/core.py \
tests/sqlite.py \
tests/get_files.py \
tests/test_tmp_config.py \
{posargs}