Closed loichuder closed 2 months ago
When using ExternalResources in a pytest test, I want the downloaded data to be put in the tmpdir provided by the pytest fixture.
ExternalResources
pytest
tmpdir
But so far, there is no way of setting data_home, be it in the constructor of ExternalResources or via a setter, forcing me to do:
data_home
silx_resources = ExternalResources( PROJECT_NAME, url_base="http://www.silx.org/pub" ) silx_resources._data_home = tmpdir
I think adding a way of setting data_home via the constructor is quite sensible. I can do a PR if you agree.
When using
ExternalResources
in apytest
test, I want the downloaded data to be put in thetmpdir
provided by thepytest
fixture.But so far, there is no way of setting
data_home
, be it in the constructor ofExternalResources
or via a setter, forcing me to do:I think adding a way of setting
data_home
via the constructor is quite sensible. I can do a PR if you agree.