dictation-toolbox / unimacro

Other
3 stars 1 forks source link

Testing issues of unimacro #54

Open quintijn opened 1 month ago

quintijn commented 1 month ago

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])

@cache def unimacro_sample_ini_dir() ->Path: return unimacro_source_dir()/"sample_ini" `

Doug could you have a look into this?