get_test_filepath#

sunpy.data.test.get_test_filepath(filename, package='sunpy.data.test', **kwargs)[source]#

Return the full path to a test file in the data/test directory.

Parameters:
  • filename (str) – The name of the file inside the data/test directory.

  • package (str, optional) – The package in which to look for the file. Defaults to “sunpy.data.test”.

Returns:

filepath (str) – The full path to the file.

Notes

This is a wrapper around astropy.utils.data.get_pkg_data_filename which sets the package kwarg to be ‘sunpy.data.test`.