minor: Use topic_name() in travis test.

This commit is contained in:
Steve Howell
2018-11-11 20:59:05 +00:00
committed by Tim Abbott
parent eb4d279bbc
commit f3e529c694

View File

@@ -38,7 +38,7 @@ class TravisHookTests(WebhookTestCase):
) )
self.assert_json_success(result) self.assert_json_success(result)
msg = self.get_last_message() msg = self.get_last_message()
self.assertNotEquals(msg.subject, self.TOPIC) self.assertNotEquals(msg.topic_name(), self.TOPIC)
def test_travis_pull_requests_are_not_ignored_when_applicable(self) -> None: def test_travis_pull_requests_are_not_ignored_when_applicable(self) -> None:
self.url = "{}&ignore_pull_requests=false".format(self.build_webhook_url()) self.url = "{}&ignore_pull_requests=false".format(self.build_webhook_url())