Make test function names lower case
@@ -798,7 +798,8 @@ class TestSpectralModelErrorPropagation:
assert out.shape == (2,)
assert_allclose(out.data, [4.119e-11, 8.157e-12], rtol=1e-3)
- def test_ecpl_model(self):
+
+def test_dnde_error_ecpl_model():
# Regression test for ECPL model
# https://github.com/gammapy/gammapy/issues/2007
model = ExpCutoffPowerLawSpectralModel(
@@ -822,7 +823,7 @@ class TestSpectralModelErrorPropagation:
assert_allclose(out.data, [1.548176e-10, 1.933612e-11], rtol=1e-3)
-def test_integral_error_PowerLaw():
+def test_integral_error_power_law():
energy = np.linspace(1 * u.TeV, 10 * u.TeV, 10)
energy_min = energy[:-1]
energy_max = energy[1:]
@@ -837,7 +838,7 @@ def test_integral_error_PowerLaw():
assert_allclose(flux_error.value[0] / 1e-14, 7.915984, rtol=1e-3)
-def test_integral_error_ExpCutOffPowerLaw():
+def test_integral_error_exp_cut_off_power_law():
energy = np.linspace(1 * u.TeV, 10 * u.TeV, 10)
energy_min = energy[:-1]
energy_max = energy[1:]
@@ -853,7 +854,7 @@ def test_integral_error_ExpCutOffPowerLaw():
assert_allclose(flux_error.value[0] / 1e-14, 8.552617, rtol=0.01)
-def test_energy_flux_error_power_Law():
+def test_energy_flux_error_power_law():
energy_min = 1 * u.TeV
energy_max = 10 * u.TeV
