requires_data¶
-
gammapy.utils.testing.
requires_data
(name)[source]¶ Decorator to declare required data for tests.
Examples
from gammapy.utils.testing import requires_data from gammapy.datasets import gammapy_extra @requires_data('gammapy-extra') def test_using_data_files(): filename = gammapy_extra.filename('...') ...