def main(): schema = sys.argv[1] output = sys.argv[2] api = vdsmapi.get_api(schema) # verify_symbols(symbols) # Now merge in the information from the comments with open(schema) as f: symbols = read_schema_doc(f, api) create_doc(symbols, output)
def __init__(self): self.api = vdsmapi.get_api() self._threadLocal = threading.local()
def __init__(self): self.api = vdsmapi.get_api()
def testSchemaParse(self): self.assertTrue(isinstance(vdsmapi.get_api(), dict))
def _getAPI(self): testPath = os.path.realpath(__file__) dirName = os.path.split(testPath)[0] apiPath = os.path.join( dirName, '..', 'vdsm_api', 'vdsmapi-schema.json') return vdsmapi.get_api(apiPath)