def get(self, *args, **kwargs): # pylint: disable=unused-argument project = dashboard_project.DashboardProject() test_relpaths = [ '/' + _RelPathToUnixPath(x) for x in project.FindAllTestModuleRelPaths() ] tests = {'test_relpaths': test_relpaths} tests_as_json = json.dumps(tests) self.response.content_type = 'application/json' return self.response.write(tests_as_json)
def get(self, *args, **kwargs): # pylint: disable=unused-argument project = dashboard_project.DashboardProject() test_relpaths = [] for test in project.FindAllTestModuleRelPaths(): test = '/' + test.replace(os.sep, '/') if '/spa/' in test: # Tests in spa/ are run by run_spa_tests, so don't run them here. continue test_relpaths.append(test) tests = {'test_relpaths': test_relpaths} tests_as_json = json.dumps(tests) self.response.content_type = 'application/json' return self.response.write(tests_as_json)
def __init__(self): self.project = dashboard_project.DashboardProject()