Sweep tests for expected_subject -> expected_topic.

This is all in the webhooks tests, including some
docs for how to write those tests.
This commit is contained in:
Steve Howell
2018-11-09 19:33:58 +00:00
committed by Tim Abbott
parent 3133998af9
commit ced4d81856
54 changed files with 743 additions and 743 deletions

View File

@@ -6,13 +6,13 @@ class IntercomWebHookTests(WebhookTestCase):
FIXTURE_DIR_NAME = 'intercom'
def test_user_created_message(self) -> None:
expected_subject = u"user tag created"
expected_topic = u"user tag created"
expected_message = ('*10:43:22 2017-12-17* **user tag created**: \n'
' - User Name: John Doe\n'
' - User Email: john.doe@gmail.com\n'
' - User Phone: 9876543211')
self.send_and_test_stream_message('user_created', expected_subject, expected_message,
self.send_and_test_stream_message('user_created', expected_topic, expected_message,
content_type="application/x-www-form-urlencoded")
def get_body(self, fixture_name: str) -> str: