from graphite.functions.params import Param, ParamTypes


def test(seriesList):
    """This is a test function"""
    return seriesList


test.group = 'Test'
test.params = [
  Param('seriesList', ParamTypes.seriesList, required=True),
  'bad param',
]

SeriesFunctions = {
  'testFunc': test,
}


def pieTest(series):
    """This is a test pie function"""
    return max(series)


pieTest.group = 'Test'
pieTest.params = [
  Param('series', ParamTypes.series, required=True),
  'bad param',
]

PieFunctions = {
  'testFunc': pieTest,
}
