tests: Remove most references to get_api_key.

This test helper doesn't really have value.
This commit is contained in:
Tim Abbott
2017-08-24 23:23:13 -07:00
parent e2ae096035
commit 7d08ff69f0
4 changed files with 10 additions and 11 deletions

View File

@@ -40,7 +40,7 @@ class GithubV1HookTests(WebhookTestCase):
def get_body(self, fixture_name):
# type: (Text) -> Dict[str, Text]
api_key = self.get_api_key(self.TEST_USER_EMAIL)
api_key = self.test_user.api_key
data = ujson.loads(self.fixture_data(self.FIXTURE_DIR_NAME, 'v1_' + fixture_name))
data.update({'email': self.TEST_USER_EMAIL,
'api-key': api_key,
@@ -180,7 +180,7 @@ class GithubV2HookTests(WebhookTestCase):
def get_body(self, fixture_name):
# type: (Text) -> Dict[str, Text]
api_key = self.get_api_key(self.TEST_USER_EMAIL)
api_key = self.test_user.api_key
data = ujson.loads(self.fixture_data(self.FIXTURE_DIR_NAME, 'v2_' + fixture_name))
data.update({'email': self.TEST_USER_EMAIL,
'api-key': api_key,