Use all test data#54
Conversation
fnattino
left a comment
There was a problem hiding this comment.
Hi @SarahAlidoost nice and clean! I have left one main comment related to some changes in leaf dynamics, I'd be interested to know what you think about that.
The current approach for testing is very nice, now we don't have to host the test data anymore as part of this repository. The drawback is that each test that requires external data fetches data from remote (actually the same dataset can also be fetched multiple times in a single test run). This will make tests slower (probably not a big deal) but also slightly less reliable (connections hiccups, timeouts).
We can simply try out how things work and reassess if we see that tests randomly fail because of remote access limitations. If this happen, an alternative approach could be to clone the PCSE repository before running tests and to set the path to the test data dir to be used in tests via some environment variable or config file. Much less elegant, but it would make sure data is fetched only once, and, if you run tests locally, you don't have to continuously download data from a remote.
you are right! thanks for pointing this out. A better approach is to ask pytest to download the test data for the test session. I added a |
@fnattino thanks a lot for your comments and suggestions 🥇, I addressed them. Please let me know if something else should be fixed |
fnattino
left a comment
There was a problem hiding this comment.
All looks good, thanks for the clarifications!
|



closes #27
This PR: