Add requires_dependency iminuit in test_analysis.py
@@ -3,7 +3,7 @@ import pytest
from numpy.testing import assert_allclose
import yaml
from gammapy.scripts import Analysis
-from gammapy.utils.testing import requires_data
+from gammapy.utils.testing import requires_data, requires_dependency
def test_config():
@@ -157,6 +157,7 @@ def config_analysis_data():
return yaml.safe_load(cfg)
+@requires_dependency("iminuit")
@requires_data()
def test_analysis(config_analysis_data):
analysis = Analysis(config_analysis_data)
