Use form POST data for beanstalk and add shim for incorrectly-encoded emails

(imported from commit b5debaa02a6a23c01aee1b2beb6fd83e70e50d65)
This commit is contained in:
Leo Franchi
2013-04-02 16:55:42 -04:00
parent 0055107cfd
commit aef86a8d45
2 changed files with 25 additions and 5 deletions

View File

@@ -2529,10 +2529,10 @@ class BeanstalkHookTests(AuthedTestCase):
def send_beanstalk_message(self, action):
email = "hamlet@humbughq.com"
api_key = self.get_api_key(email)
data = {'payload': self.fixture_jsondata('beanstalk', action)}
return self.send_json_payload(email, "/api/v1/external/beanstalk",
self.fixture_jsondata('beanstalk', action),
data,
stream_name="commits",
content_type="application/json",
HTTP_AUTHORIZATION=self.http_auth(email, api_key))
def test_git_single(self):