Page MenuHomePhabricator

TestThankFlowPost.test_thank_post() of flow_thanks_tests fails with AssertionError
Closed, DeclinedPublic

Description

______________________ TestThankFlowPost.test_thank_post _______________________

self = <tests.flow_thanks_tests.TestThankFlowPost testMethod=test_thank_post>

    def test_thank_post(self):
        """Test thanks for Flow posts."""
        site = self.get_site()
        topic = Topic(site, self._topic_title)
        for post in reversed(topic.replies()):
            user = post.creator
            if site.user() == user.username:
                continue
            if user.is_thankable:
                break
        else:
            self.skipTest(NO_THANKABLE_POSTS)
        before_time = site.getcurrenttimestamp()
        post.thank()
        log_entries = site.logevents(logtype='thanks', total=5, page=user,
                                     start=before_time, reverse=True)
>       self.assertTrue(bool(next(log_entries, None)))
E       AssertionError: False is not true

tests/flow_thanks_tests.py:51: AssertionError