@pytest.mark.parametrize('test_dict', Mag14_test)
def test_comp_mec_radius(self, test_dict):
    'Check that the computation of the mechanical radius is correct'
    test_obj = test_dict['test_obj']
    a = test_obj.comp_radius_mec()
    assert (a == pytest.approx(test_dict['Rmec'], rel=DELTA))
Check that the computation of the mechanical radius is correct
@pytest.mark.parametrize('test_dict', Mag14_test)
def test_comp_mec_radius(self, test_dict):
    
    test_obj = test_dict['test_obj']
    a = test_obj.comp_radius_mec()
    assert (a == pytest.approx(test_dict['Rmec'], rel=DELTA))