Debian Codegraph @

tests/test_data/testcore.py

raw
1 #c Copyright 2008-2025, the GAVO project <[email protected]>
2 #c
3 #c This program is free software, covered by the GNU GPL. See the
4 #c COPYING file in the source distribution.
5
6
7 from gavo import api
8
9 class Core(api.Core):
10 inputTableXML = """
11 <inputTable>
12 <inputKey name="x" type="integer" multiplicity="single"
13 tablehead="Num"/></inputTable>"""
14
15 def run(self, service, inputTable, queryMeta):
16 return ("text/plain", "x"*inputTable.args["x"])