def post_logs(self): for result in self.results: if not result.passed: result.log_url = gh_api.post_gist( result.log, description='NetworkX test log', filename="results.log", auth=True)
def post_logs(results): results_urls = [] for py, passed, log, missing_libraries in results: if passed: results_urls.append((py, passed, None, missing_libraries)) else: result_locn = gh_api.post_gist(log, description='Theano test log', filename="results.log", auth=True) results_urls.append((py, False, result_locn, missing_libraries)) return results_urls
def post_logs(self): for result in self.results: if not result.passed: result.log_url = gh_api.post_gist(result.log, description='IPython test log', filename="results.log", auth=True)