Skip to content

Providing a datasets.download_test_data() method #1111

@maxrjones

Description

@maxrjones

Description of the desired feature

Tests are more reliable if the remote datasets are downloaded before running the tests, in particular if any are run in parallel. Developers only really need to worry about this once, but it still could be confusing for new contributors if tests fail because of the remote file mechanism. On the GMT-side gmt get -Dcache and gmt get -Ddata=earth -I1m -N can be used to download the data required for tests, but PyGMT does not need all these data for its tests.

Is it worth adding a new method datasets.download_test_data() that new contributors can use before testing their code to download all the necessary datasets? I think this would contain a PyGMT version of the contents of the 'Download remote data' task in the cache data workflow - then perhaps that workflow could use this method to avoid redundancy.

Are you willing to help implement and maintain this feature? Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    maintenanceBoring but important stuff for the core devs

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions