Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing issues of unimacro #54

Open
quintijn opened this issue Aug 9, 2024 · 0 comments
Open

Testing issues of unimacro #54

quintijn opened this issue Aug 9, 2024 · 0 comments
Assignees

Comments

@quintijn
Copy link
Collaborator

quintijn commented Aug 9, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants