When I run pytest on the whole tests directory, errors occur, that stay away when one module is run a a time.
I think the @cache in conftest.py is too rough, and should be changed into a fixture with scope="module".
`@cache #only needs to be called once
def unimacro_source_dir() ->Path:
return Path(importlib.util.find_spec("unimacro").submodule_search_locations[0])
When I run pytest on the whole tests directory, errors occur, that stay away when one module is run a a time.
I think the
@cache
inconftest.py
is too rough, and should be changed into a fixture withscope="module"
.`@cache #only needs to be called once def unimacro_source_dir() ->Path: return Path(importlib.util.find_spec("unimacro").submodule_search_locations[0])
@cache def unimacro_sample_ini_dir() ->Path: return unimacro_source_dir()/"sample_ini" `
Doug could you have a look into this?