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

Consider pooch library for test data #382

Open
gerritholl opened this issue Dec 16, 2020 · 1 comment
Open

Consider pooch library for test data #382

gerritholl opened this issue Dec 16, 2020 · 1 comment

Comments

@gerritholl
Copy link
Contributor

Currently, to run the typhon tests completely, users need to checkout the typhon-testfiles repository to a specified path. If these test data are really needed for running the tests (and can't be mocked or created on the fly), the pooch library may provide a more git- and user-friendly alternative. Compared to the status quo this has the advantage that:

  • Users only need a single package (typhon) to run the tests, and
  • No data files would need to be stored within a git repository (for which git is not well suited).
@olemke
Copy link
Member

olemke commented Dec 17, 2021

Thanks for pointing out the pooch library. It looks really useful.
I've played around with it and added a first implementation for the typhon tests (only in my fork for now).
A script in typhon-testfiles creates registry files for pooch in the typhon/test directory which are needed to retrieve the files during the tests.
The get_testfiles_directory function will try to retrieve the testfiles via pooch if a local copy of typhon-testfiles is not available.

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