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

Test helpers for working with files and folders #570

Open
martonvago opened this issue Aug 16, 2024 · 3 comments
Open

Test helpers for working with files and folders #570

martonvago opened this issue Aug 16, 2024 · 3 comments

Comments

@martonvago
Copy link
Contributor

Have a think about whether there are any useful common functions for testing that would help us to set up (and tear down) folder structures quickly when we run tests against them.

This is probably best done after we've written a couple of tests and see what our needs actually are.

@lwjohnst86
Copy link
Member

lwjohnst86 commented Aug 19, 2024

Make use of temporary paths with tempfile module: tempfile.TemporaryFile() etc. See https://docs.python.org/3/library/tempfile.html

@lwjohnst86
Copy link
Member

Not sure if this is relevant anymore?

@signekb
Copy link
Member

signekb commented Sep 25, 2024

I guess this comes up naturally as we create tests? For example, I added some helpers for testing the path_*() functions in #730
As we go, we can keep in mind how we want to structure these helper functions and fixtures?

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

No branches or pull requests

3 participants