core/modules: switch away from using override_config to tmp_config in some tests & faka data generators
This commit is contained in:
parent
5ac5636e7f
commit
0e884fe166
5 changed files with 48 additions and 25 deletions
|
@ -123,8 +123,8 @@ from contextlib import contextmanager as ctx
|
|||
@ctx
|
||||
def _reset_config() -> Iterator[Config]:
|
||||
# todo maybe have this decorator for the whole of my.config?
|
||||
from .cfg import override_config
|
||||
with override_config(config) as cc:
|
||||
from .cfg import _override_config
|
||||
with _override_config(config) as cc:
|
||||
cc.enabled_modules = None
|
||||
cc.disabled_modules = None
|
||||
cc.cache_dir = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue