requires_dependency

gammapy.utils.testing.requires_dependency(name)[source]

Decorator to declare required dependencies for tests.

Examples

::

from gammapy.utils.testing import requires_dependency

@requires_dependency(‘scipy’) def test_using_scipy():

import scipy …