You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered: