Beispiel #1
0
    def setUp(self):
        super(CommentReviewUITest, self).setUp()
        self.removed_comment =\
            make_comment(self.plot, self.user, is_removed=True)
        make_comment(self.plot, self.user)
        make_comment(self.plot, self.user)
        make_comment(self.plot, self.user)
        make_comment(self.plot, self.user)
        make_comment(self.plot, self.user, text="""
                     This is a really long comment

                     It spans a lot of lines, and has a lot of text

                     So it should get cut off in the UI, and only show the
                     first few lines.

                     We have a link on the page to show less/more of the
                     comment text.

                     Lorem ipsum dolor sit amet, consectetur adipiscing elit,
                     sed do eiusmod tempor incididunt ut labore et dolore magna
                     aliqua. Ut enim ad minim veniam, quis nostrud exercitation
                     ullamco laboris nisi ut aliquip ex ea commodo consequat.
                     Duis aute irure dolor in reprehenderit in voluptate velit
                     esse cillum dolore eu fugiat nulla pariatur. Excepteur
                     sint occaecat cupidatat non proident, sunt in culpa qui
                     officia deserunt mollit anim id est laborum
                     """)

        self.login_workflow(user=self.admin)
        self.comments_url = reverse('comment_moderation_full',
                                    args=(self.instance.url_name,))
        self.browse_to_url(self.comments_url)
Beispiel #2
0
    def setUp(self):
        super(CommentReviewUITest, self).setUp()
        self.removed_comment =\
            make_comment(self.plot, self.user, is_removed=True)
        make_comment(self.plot, self.user)
        make_comment(self.plot, self.user)
        make_comment(self.plot, self.user)
        make_comment(self.plot, self.user)
        make_comment(self.plot,
                     self.user,
                     text="""
                     This is a really long comment

                     It spans a lot of lines, and has a lot of text

                     So it should get cut off in the UI, and only show the
                     first few lines.

                     We have a link on the page to show less/more of the
                     comment text.

                     Lorem ipsum dolor sit amet, consectetur adipiscing elit,
                     sed do eiusmod tempor incididunt ut labore et dolore magna
                     aliqua. Ut enim ad minim veniam, quis nostrud exercitation
                     ullamco laboris nisi ut aliquip ex ea commodo consequat.
                     Duis aute irure dolor in reprehenderit in voluptate velit
                     esse cillum dolore eu fugiat nulla pariatur. Excepteur
                     sint occaecat cupidatat non proident, sunt in culpa qui
                     officia deserunt mollit anim id est laborum
                     """)

        self.login_workflow(user=self.admin)
        self.comments_url = reverse('comment_moderation_full',
                                    args=(self.instance.url_name, ))
        self.browse_to_url(self.comments_url)