12rambau / pytest-copie

The pytest plugin for your copier templates 📒
https://pytest-copie.readthedocs.io/en/latest/
MIT License
15 stars 5 forks source link

fix config scope and tmp dir creation #90

Open sjvrijn opened 1 month ago

sjvrijn commented 1 month ago

See https://github.com/12rambau/pytest-copie/pull/89#issuecomment-2258593881

12rambau commented 1 month ago

how will it continue to work at function scope if the config file fixture is session scoped ?

sjvrijn commented 1 month ago

Setting the config scope to session means it's only generated once per session, i.e., the result is reused for all subsequent calls. This seems to work fine for pytest-cookies: https://github.com/hackebrot/pytest-cookies/blob/28492af5bba1da3a2bed19389f96584e51c1e08f/src/pytest_cookies/plugin.py#L119

sjvrijn commented 4 weeks ago

@12rambau, are there any other questions you have about this, or is there anything else I can do?

12rambau commented 4 weeks ago

I just need to find time to perform my OSS duties, I like this repository and use it a lot I'll let you know if anything is not working.