From 2bb04fc72055c1d46a0efbd3863823e1cfb5f329 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Thu, 9 Aug 2018 15:29:32 -0700 Subject: [PATCH] tools: Remove send-github-payloads. This ancient tool predates our practice of collecting test fixtures for third-party integrations, which is a better general system for the problem this solved. --- tools/send-github-payloads | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100755 tools/send-github-payloads diff --git a/tools/send-github-payloads b/tools/send-github-payloads deleted file mode 100755 index 778b3fefc0..0000000000 --- a/tools/send-github-payloads +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env python3 -import sys -import os -import json - -sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'api')) -import zulip - -zulip_client = zulip.Client(site="http://localhost:9991", client="ZulipGithubPayloadSender/0.1") - -payload_dir = "zerver/tests/fixtures/github" -for filename in os.listdir(payload_dir): - with open(os.path.join(payload_dir, filename)) as f: - req = json.loads(f.read()) - req['api-key'] = zulip_client.api_key - req['email'] = zulip_client.email - zulip_client.do_api_query(req, zulip.API_VERSTRING + "external/github")